popular-npm

1.0.4 • Public • Published

popular-npm

NPM Version

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
  }, 
  ......
]

Readme

Keywords

none

Package Sidebar

Install

npm i popular-npm

Weekly Downloads

0

Version

1.0.4

License

MIT

Last publish

Collaborators

  • colbyy