Skip to content

Get Started

NPM Stat

PyPI Version TOML Python Version GitHub Downloads PyPI Downloads Pepy Total Downloads Codecov Workflow Test GitHub Last Commit GitHub Contributors GitHub Issues GitHub Discussions GitHub Forks GitHub Repo Stars GitHub Org Stars Discord Ko-fi

Get NPM Package Stats and Info from the command line or as a Python module.

If you run into any issues or have any questions, support is available.

Install

Using PyPI , with Homebrew , or from GitHub .

pip install npmstat
uv tool install npmstat
brew install cssnr/tap/npmstat  # (1)!
  1. Tap Source: https://github.com/cssnr/homebrew-tap
curl https://i.jpillora.com/cssnr/npmstat! | bash  # (1)!
  1. Note: the ! installs into /usr/local/bin.

    Omit this to use the current directory.

    See jpillora/installer for more details.

Upgrade.

pip install -U npmstat
uv tool upgrade npmstat
brew update && brew install  npmstat
curl https://i.jpillora.com/cssnr/npmstat! | bash  # (1)!
  1. To upgrade, install the latest release .

Uninstall.

pip uninstall npmstat
uv tool uninstall npmstat
brew uninstall npmstat
rm -f /usr/local/bin/npmstat  # (1)!
  1. If you used the installation script above.

Usage

  • From the command line run npmstat.
npmstat stats @cssnr/vitepress-swiper

View the CLI Documentation for more details.

  • Or as a Python module.
from npmstat import api

downloads = api.get_downloads("@cssnr/vitepress-swiper")
print(downloads.json())

View the Module Documentation for more details.

 

Question

If you need help getting started or run into any issues, support is available!