get-npm-downloads
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

get-npm-downloads

BuildStatus NPM download total NPM version MIT license

Display npm download in console (also include lib)

Usage

const getNpmDownloads = require('get-npm-downloads');

const datas = getNpmDownloads({
  userId,
  repo,
  period: 'total'
});

Usage-cli

  Usage
      $ get-npm-downloads [repository_name || #user_name] period_option

  Examples
      $ get-npm-downloads repository_name today
      $ get-npm-downloads repository_name last-day
      $ get-npm-downloads repository_name day
      $ get-npm-downloads repository_name last-week
      $ get-npm-downloads '#user_name' w
      $ get-npm-downloads '#user_name' last-month
      $ get-npm-downloads '#user_name' 2014-01-01:2014-01-31
      $ get-npm-downloads '#user_name' w
      $ get-npm-downloads '#user_name' t

Readme

Keywords

Package Sidebar

Install

npm i get-npm-downloads

Weekly Downloads

31

Version

0.2.5

License

MIT

Unpacked Size

9.55 kB

Total Files

10

Last publish

Collaborators

  • jopemachine