Resource for NPM's most downloaded this week/month

后端 未结 2 994
醉酒成梦
醉酒成梦 2021-02-20 18:41

Are there any sites that display this weeks/months most popular modules from Node Package Manger (NPM).

I know www.npmjs.com have packages people \'npm install\' a

相关标签:
2条回答
  • 2021-02-20 19:38

    Here’s most depended upon

    var cheerio = require('cheerio');
    var request = require('request');
    
    request('https://www.npmjs.com/browse/depended', function (err, res, body) {
      if (err) return false;
      var $ = cheerio.load(body);
      $('h3 a').each(function () {
        console.log($(this).html() + ' - ' + $(this).attr('href'));
      });
    });
    
    0 讨论(0)
  • 2021-02-20 19:39

    There is https://npm-stat.com/ which allows you to view the number of downloads per month/week/day of any individual package.

    0 讨论(0)
提交回复
热议问题