npm-keyword-scraper

1.0.1 • Public • Published

npm-keyword-scraper

A scraper to get npm modules from the registry that match all of a series of keywords.

Usage

var KEYWORDS = ['generator', 'ui'];
var KeywordScraper = require('npm-keyword-scraper');
 
var opts = {
  keywords: KEYWORDS,
  level: 3
}
 
var keywordScraper = new KeywordScraper(opts);
 
keywordScraper.getFromKeywords(function(modules) {
  console.log(JSON.stringify(modules));
});

result

[
  {
    "key": [
      "ui",
      "apui",
      "A documentation UI generator for API's"
    ],
    "value": 1
  },
  {
    "key": [
      "ui",
      "generator-appverse-html5",
      "Appverse HTML 5 generator"
    ],
    "value": 1
  },
  {
    "key": [
      "ui",
      "html-maker",
      "Yet another HTML builder"
    ],
    "value": 1
  },
  {
    "key": [
      "ui",
      "htmlgen",
      "Simple canonical HTML generator."
    ],
    "value": 1
  },
  {
    "key": [
      "ui",
      "nyg-ui-generator",
      "UI scaffold generator and module publisher"
    ],
    "value": 1
  },
  {
    "key": [
      "ui",
      "react-native-ksi-barcode",
      "barcode code128 generator"
    ],
    "value": 1
  },
  {
    "key": [
      "ui",
      "reactive-builder",
      "Reactive DOM elements created with CoffeeScript"
    ],
    "value": 1
  },
  {
    "key": [
      "ui",
      "slush-helpful-ui",
      "Opinionated front-end structure with some pre-built Stylus components."
    ],
    "value": 1
  },
  {
    "key": [
      "ui",
      "zeus-html",
      "Simple HTML generator written on coffee-script"
    ],
    "value": 1
  }
]```

Package Sidebar

Install

npm i npm-keyword-scraper

Weekly Downloads

0

Version

1.0.1

License

ISC

Last publish

Collaborators

  • nascherman