Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download counts are not the same as in NPM. Are they downloads per week? #181

Open
vibl opened this issue Sep 21, 2023 · 1 comment
Open

Comments

@vibl
Copy link

vibl commented Sep 21, 2023

Download counts are not the same as in NPM. Are they download per week?

Example:

https://www.npmjs.com/package/react-aria : ~41k downloads per week
https://npmtrends.com/react-aria: ~150k downloads per ?

Also, the last number is always much lower than the rest, which gives the impression that all packages downloads have been plummeting recently (which is probably not the case given that I'm writing this on Thursday September 21st).

@abizek
Copy link

abizek commented Mar 28, 2024

Yes, these are downloads per week. According to the code, npmtrends discards data from the current week.

const endDate = dayjs().subtract(1, 'week').endOf('week').format('YYYY-MM-DD');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants