Skip to content

hafffe/pkg-downloads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pkg-downloads Build Status

Check total downloads of a package during a specific time period

Install

$ npm install pkg-downloads

Usage

const pkgDownloads = require('pkg-downloads');

pkgDownloads('chalk', {period: 'week'}).then(res => {
	console.log(res);
	//=> 2948939
});

API

pkgDownloads(name, options)

name

Required Type: string

Name of the npm package.

options

period

Required Type: string

Choose by day, week or month.

Related

pkg-downloads-cli - CLI for this module.

License

MIT © alonalon

About

get download stats during a time period for a npm package

Resources

License

Stars

Watchers

Forks

Packages

No packages published