npm-registry-packages

1.1.0 • Public • Published

npm-registry-packages

Fetch the packages names on an npm registry.

Installation

Install this package from npm:

npm install --save npm-registry-packages

Usage

var getPkgs = require('npm-registry-packages');
 
getPkgs('http://registry.npmjs.internal/', function(err, pkgs) {
  if (err) {
    console.error(err.message);
    return;
  }
 
  console.log(pkgs);
});

The URL provided must point at the _rewrite design document, either via CouchDB’s vhost configuration or via the full path. Examples include:

The callback function receives an error and an array of package names.

/npm-registry-packages/

    Package Sidebar

    Install

    npm i npm-registry-packages

    Weekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • terinjokes