npm-registry-client

Usage

var RegClient = require('npm-registry-client')
var client = new RegClient(config)
client.get("npm", "latest", 1000, function(er, data, raw, res) {// error is an error if there was a problem.// data is the parsed data object// raw is the json string// res is the response from couch
})

Configuration

This program is designed to work with
npmconf, but you can also pass in
a plain-jane object with the appropriate configs, and it'll shim it
for you. Any configuration thingie that has get/set/del methods will
also be accepted.

registryRequired {String} URL to the registry

cacheRequired {String} Path to the cache folder

always-auth {Boolean} Auth even for GET requests.

auth {String} A base64-encoded username:password

email {String} User's email address

tag {String} The default tag to use when publishing new packages.
Default = "latest"