Scrap npm website for search results.
npm install -g npm-scrap
npm-scrap [options] [command]
Commands:
search <terms>
Scrap npmjs.org and return search results
Options:
-h, --help output usage information
-V, --version output the version number
var Scrapper = require('npm-scrap');
var terms = 'backbone marionette';
new Scrapper(terms).search(function (err, results) {
if (err) {
return console.error('Error: %s', err);
}
console.log(results);
});