Forkthis repository.- Add your npm username/author or list of packages in
package.jsonasnpm-statskey. for author
{
"npm-stats": "maddhruv"
}or for packages
{
"npm-stats": [
"post-merge-install",
"engines-ok"
]
}- Run
npm iand thennpm startto generate the downloads. - The repo comes with a daily CRON job that updates the downloads.
- For updating the badge replace
maddhruvin 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 Actionsfor your forked repo, as it is disabled by default for forks.
- npmtotal - Find you npm download statistics