1.0.4 • Published 7 years ago

popular-npm v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago