Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-pkg-stats

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-pkg-stats

A CLI tool that gets stats on NPM packages.

  • 1.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

npm-pkg-stats

Quickly grok the current health of an npm package using a single command.

Installation & Usage

If you'd like to get stats from GitHub, please follow these instructions to create a personal access token. You will only need read access for the script to work.

Once you've created the token, add it to your global environment variables under NPM_PKG_STATS_TOKEN. For example, if you're using bash, add the following line to your .bashrc file:

export NPM_PKG_STATS_TOKEN=add_token_here

Now that you've created your token, just install npm-pkg-stats globally:

npm install --global npm-pkg-stats

And you're good to go!

npm-pkg-stats package_name

For example, npm-pkg-stats react prints the following stats to the console:

┌──────────────────────────┬─────────────┐
│ package                  │ react       │
├──────────────────────────┼─────────────┤
│ version                  │ 16.10.2     │
├──────────────────────────┼─────────────┤
│ dependencies             │ 3           │
├──────────────────────────┼─────────────┤
│ gzip size                │ 2.6 kB      │
├──────────────────────────┼─────────────┤
│ weekly npm downloads     │ 5,878,791   │
├──────────────────────────┼─────────────┤
│ github stars             │ 137,853     │
├──────────────────────────┼─────────────┤
│ open PRs                 │ 233         │
├──────────────────────────┼─────────────┤
│ open PRs (% of total)    │ 8.77%       │
├──────────────────────────┼─────────────┤
│ closed PRs               │ 2,423       │
├──────────────────────────┼─────────────┤
│ open issues              │ 637         │
├──────────────────────────┼─────────────┤
│ open issues (% of total) │ 7.74%       │
├──────────────────────────┼─────────────┤
│ closed issues            │ 7,588       │
├──────────────────────────┼─────────────┤
│ last release             │ 2019-10-03  │
├──────────────────────────┼─────────────┤
│ license                  │ MIT License │
└──────────────────────────┴─────────────┘

If you prefer to use npx:

npx npm-pkg-stats react

Stats

version | source: bundlephobia (via npm)
dependencies | source: bundlephobia (via npm)
gzip size | source: bundlephobia (via npm)
weekly npm downloads | source: npm
github stars | source: github
open PRs | source: github
open PRs (% of total) | source: github
closed PRs | source: github
open issues | source: github
open issues (% of total) | source: github
closed issues | source: github
last release | source: github
license | source: github

FAQs

Package last updated on 17 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc