popular-npm
v1.0.4
Published
npm package that returns top 100 packages with daily, weekly, and monthly download counts.
Downloads
3
Readme
popular-npm
This is a npm module that scrapes https://www.npmjs.com/ for the top 100 popular packages and gets their daily, weekly, and monthly download counts.
Install
$ npm i popular-npm --save=
Using
Theres only one function that returns a promise:
const popularNpm = require('popular-npm');
popularNpm.getPackages()
.then(results => console.log(results));
example output:
[
{
"name": "express",
"daily": 461592,
"weekly": 2656439,
"monthly": 11384218
},
{
"name": "gulp",
"daily": 133349,
"weekly": 748169,
"monthly": 2980326
},
{
"name": "request",
"daily": 984247,
"weekly": 5722383,
"monthly": 24818621
},
{
"name": "async",
"daily": 1850609,
"weekly": 10367684,
"monthly": 43451451
},
......
]