npm-scrap
v0.0.6
Published
Scrap npm website for search results
Downloads
55
Readme
npm-scrap
Scrap npm website for search results.
Installation
npm install -g npm-scrap
Usage
CLI
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
API
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);
});