stream7 / npm-scrap

Scrap npm website for search results

Repository from Github https://github.comstream7/npm-scrapRepository from Github https://github.comstream7/npm-scrap

npm-scrap

Build status

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);
});

About

Scrap npm website for search results


Languages

Language:JavaScript 100.0%