top-packages-category-wise

1.0.1 • Public • Published

top-packages-category-wise

finds top npm packages in given category by popularity|maintenance|quality|overall.

  • returns a promise
  • fullfillment value for promise is array of package names (default) or array of package objects.
  • default ordering criteria is 'popularity'. Other options are maintenance, quality, and overall.
  • default result size is 10

Examples

  1. top 10 'api' packages
var top = require('top-packages-category-wise');
top('api').then(function (list) {
    console.log(list); //[ 'express', 'aws-sdk', 'googleapis', ...]
}).catch(function (error) {
    console.log(error);
});
  1. top 5 'database' packages
var top = require('top-packages-category-wise');
top('database', 5).then(function (list) {
    console.log(list); //[ 'redis', 'mongoose', 'pg', 'mime-db', 'levelup' ]
}).catch(function (error) {
    console.log(error);
});
  1. top 5 'database' packages with full package detail
var top = require('top-packages-category-wise');
top('database', 5, {
    fullPackageDetail: true,
    criteria: 'quality'
}).then(function (list) {
    console.log(list);
}).catch(function (error) {
    console.log(error);
});

/top-packages-category-wise/

    Package Sidebar

    Install

    npm i top-packages-category-wise

    Weekly Downloads

    0

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    16.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • ksingh8081