npm-taken
Find out if a module name is already in the npm registry.
Usage
var npmTaken = ; ;
API
npmTaken(packageName, [registryUrl,] callback)
packageName
Required
Type: string
The package name you want.
registryUrl
Optional
Type: string
Use an alternate registry to perform the lookup.
Default is https://registry.npmjs.com/
.
callback
Optional
Type: function(err, response)
Will be called with:
err
: if there was some problem communicating with the registry,null
otherwise.response
: will befalse
if the name is available, otherwise it will be an object containing metadata about the existing module.
License
MIT © James Talmage