1.1.0 • Published 8 years ago

npm-registry-packages v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

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.