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
- top 10 'api' packages
var top = require('top-packages-category-wise');
top('api').then(function (list) {
console.log(list);
}).catch(function (error) {
console.log(error);
});
- top 5 'database' packages
var top = require('top-packages-category-wise');
top('database', 5).then(function (list) {
console.log(list);
}).catch(function (error) {
console.log(error);
});
- 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);
});
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
1.0.1 | 0 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
1.0.1 | 0 | |
1.0.0 | 0 | |
Package Sidebar
Install
npm i top-packages-category-wise
Weekly Downloads