npm-profile-downloads

2.0.0 • Public • Published

npm-profile-downloads

NPM version Build Status Coveralls Status Dependency Status

get downloads stats for target npm profile

Install

npm install --save npm-profile-downloads

Usage

import npmProfileDownloads from 'npm-profile-downloads';
 
npmProfileDownloads('last-month', 'sindresorhus').then(res => {
  console.log(res); // 307290898
});

API

npmProfileDownloads(period, username)

Return a promise that resolves to downloads stats.

period

Required
Type: String

One of last-month, last-week or last-day.

username

Required
Type: String

Valid npm username.

Related

License

MIT © Vladimir Starkov

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    4
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    4
  • 1.1.1
    1
  • 1.1.0
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i npm-profile-downloads

Weekly Downloads

7

Version

2.0.0

License

MIT

Last publish

Collaborators

  • iamstarkov