An open API service indexing awesome lists of open source software.

https://github.com/kshvmdn/pkg-stats

A command line tool for getting download stats for npm packages.
https://github.com/kshvmdn/pkg-stats

Last synced: 6 months ago
JSON representation

A command line tool for getting download stats for npm packages.

Awesome Lists containing this project

README

          

# pkg-stats
A command line tool for getting download stats for npm packages. Available on [npm](https://www.npmjs.com/package/pkg-stats).

![Screenshot](http://i.imgur.com/PusRxSs.png)

#### Install

```
npm i pkg-stats -g
```

#### Usage

- `pkgstats` requires __either__ a username or package name(s) and a period (day/week/month). See below for usage, options, and examples (or run `pkgstats --help` to access it in your console).

```
Usage
$ pkgstats -u -p -t

Options
-u, --user npm username
-p, --package package name
-t, --time time period

Examples
$ pkgstats -u kshvmdn -t day
$ pkgstats -p latestvid -t month
$ pkgstats -p latestvid -p pkg-stats -t month
$ pkgstats -p "latestvid, pkg-stats" -t month
```

- Scoped packages are not supported by the npm API.

#### Contribute

Feel free to open an [issue](https://github.com/kshvmdn/pkg-stats/issues) or make a [PR](https://github.com/kshvmdn/pkg-stats/pulls), all contributions are welcome!