node package manager

npm-registry-packages

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.