Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

npm-registry-packages

terinjokes24MIT1.1.0

Packages on an npm registry

npm, registry

readme

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.