2.3.1 • Published 8 years ago

pkg-downloads v2.3.1

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

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

2.3.1

8 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.0

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago