Skip to content
FusionFrozePublic

About

Get basic stats about the npm packages maintained by you, in your terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Statsy

Get basic stats about public npm packages maintained by you, in your terminal.

Installation

Prerequisite: Node.js v18+

Install Globally:

$ npm i -g @fusionfroze/statsy

For Local Development:

After cloning the repo into your machine locally, run these -

$ npm install
$ npm link

How to Use it

Setting up

After installing, run -

$ statsy setup

This will open an input interface and ask for two things (both saved locally in your machine) -

  • Your npm username
  • Your personal Github Access token

(Tip: To know more about github access tokens click here. Remember to select the repo scope, otherwise the api will not be able to fetch info about your repository.)

Viewing stats

statsy support four options, each showing a different stat. These are as follows -

Options:
  -v, --version    current version of the package
  -s, --stars      star count on the repository of the package on github
  -i, --issues     issue count on the repository of the package on github
  -d, --downloads  download count of the package from npm registry

You can run the command in four ways -

$ statsy

Shows all four stats for all packages maintained by you.

$ statsy -d -i

or

$ statsy -di

Shows only the download and issues count for all packages.

$ statsy examplePackage

Shows all stats for a single specified package (examplePackage).

$ statsy examplePackage -d

Shows only the download count for a single specified package.

Resetting your credentials

To delete/reset your credentials, run -

$ statsy reset

You will be asked to give your confirmation once. Once confirmed, the action is irreversible.

About

Get basic stats about the npm packages maintained by you, in your terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages