Giter VIP home page Giter VIP logo

pkg-stats's Introduction

pkg-stats

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

Screenshot

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 <user> -p <package name> -t <day|week|month>

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 or make a PR, all contributions are welcome!

pkg-stats's People

Contributors

kashav avatar evansiroky avatar

Stargazers

Scott Ivey avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

evansiroky

pkg-stats's Issues

Show stats for all time periods

Show download stats for all time periods together. Can be called using -t all or without the time flag altogether, i.e. just -u <user> / -p <package>.

Only problem is that there's no way to request all the data together so it requires 3 api calls for every package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.