You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you're only using npm.commands.view it would be better to just use something like:
varRegClient=require('npm-registry-client')varclient=newRegClient(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})
npm-registry-client is the library depended on by npm to fetch things from the registry. Why is this better?
Reduces dependencies: As a library about dependencies this should be self-explanatory :-D
More configurable: If I wanted to use david to check against two different registries I am currently limited by what is on disk in .npmrc when you call npm.load
I would make a PR for this if you're interested.
The text was updated successfully, but these errors were encountered:
Since you're only using
npm.commands.view
it would be better to just use something like:npm-registry-client is the library depended on by
npm
to fetch things from the registry. Why is this better?david
to check against two different registries I am currently limited by what is on disk in.npmrc
when you callnpm.load
I would make a PR for this if you're interested.
The text was updated successfully, but these errors were encountered: