
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
npm-pkg-stats
Advanced tools
Quickly grok the current health of an npm package using a single command.
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
FAQs
A CLI tool that gets stats on NPM packages.
The npm package npm-pkg-stats receives a total of 2 weekly downloads. As such, npm-pkg-stats popularity was classified as not popular.
We found that npm-pkg-stats demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.