npmtotal
Find your npm download statistics by author or packages, can be used as a CLI or Module
Installation
npm i npmtotal -g
or
npm i npmtotal
when consuming as a module
Usage
CLI
For npm author
npx npmtotal --author authorName
and for npm packages
npx npmtotal --packages package1 package2 ...
Module
const npmtotal = ; // authorasync { console;}; // packagesasync { console;};
The returned object is of this structure.
stats: StringpackageName Numberdownloads sum: NumbertotalDownloads
Options
You can pass several options as the second param.
Option | Description | Default value |
---|---|---|
exclude |
an array of packages to exclude | [] |
startDate |
start date for counting downloads | today - 1 year |
endDate |
end date for counting downloads | today |
You can also pass startDate
and endDate
as options to the CLI
npx npmtotal --author maddhruv --startDate '2020-01-01' --endDate '2020-01-03'
Related
- npm-statistics - NPM Download Stats updated daily with badge and readme update