Skip to content

iamstarkov/npm-profile-downloads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

get downloads stats for target npm profile

Resources

Stars

Watchers

Forks

Packages

No packages published