Commandline application for retrieving npm download counts for the specified repository or maintainer.
Install with npm:
$ npm install --save downloads-cli
Once installed globally, there will be a
downloads command that can be run from the command line.
To see the download counts for a module, specify the module name after the
downloads command like this:
$ downloads micromatch
Example output from running
$ downloads micromatch:
--format option to format the results as a table (this is the default).
Run the following command to the downloads formatted as a table:
$ downloads micromatch --format
If you need to use the results as a JSON object, use the
--format command with
json after it:
$ downloads micromatch --format json
```This can be output to a json file using the `bash` `>` character:```sh$ downloads micromatch --format json > micromatch-downloads.json
To get downloads for all of the modules maintained by a specific maintainer, use the
$ downloads --maintainer doowb
This shows a table with a summary for the maintainer's total counts:
--format option will also work with
--maintainer to return a
json array of necessary:
- dependents-cli: CLI for listing an npm module's dependent projects and their download stats. | homepage
- downloads: Retrieve npm download stats for the specified repository or maintainer. | homepage
- npm-api: Base class for retrieving data from the npm registry. | homepage
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Please read the contributing guide for avice on opening issues, pull requests, and coding standards.
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
$ npm install -d && npm test
Copyright © 2016, Brian Woodward. Released under the MIT license.
This file was generated by verb-generate-readme, v0.2.0, on November 15, 2016.