Fork
this repository.- Add your npm username/author or list of packages in
package.json
asnpm-stats
key. for author
{
"npm-stats": "maddhruv"
}
or for packages
{
"npm-stats": [
"post-merge-install",
"engines-ok"
]
}
- Run
npm i
and thennpm start
to generate the downloads. - The repo comes with a daily CRON job that updates the downloads.
- For updating the badge replace
maddhruv
in badge endpoint to your github username/orgname. https://img.shields.io/endpoint?url=https%3A%2F%2Fraw.githubusercontent.com%2F`username`%2Fgithub-readme-npm-downloads%2Fmaster%2Fstats.json - Enable
GitHub Actions
for your forked repo, as it is disabled by default for forks.
- npmtotal - Find you npm download statistics