Fetch list of packages on NPM with specified keyword
This queries the NPM registry with npm-registry-client
.
It lists all packages matching a keyword using the CouchDB view byKeyword
.
Install
npm install --save npm-keywordsearch # yep
Test npm test whatever-keyword
API
var search = require('npm-keywordsearch')
search('my-plugin', function (error, packages) {
packages.forEach(function (pkg) {
console.log(pkg.name + ': ' + pkg.description)
})
})