registry-package-info
v1.0.1
Published
get package info from remote registry
Downloads
38
Readme
RegistryPkgInfo
Install
npm install registry-package-info
Demo
const getRegistryPkgInfo = require('registry-package-info');
/* get the latest version package info from npm registry */
getRegistryPkgInfo('react',{
registry:'http://registry.npmjs.org',
version:'latest'
})
.then(function(data){
console.dir(data);
})
.catch(function(e){
console.log(e);
})
Parameters
getRegistryPkgInfo ( pkgname, options );
parameter | description | default | required ----- | ----- | ----- | ---- pkgname | string | null | Y options | object | { version:'latest', registry:'http://registry.npmjs.org' } | N
License
registry-pkg-info is MIT licensed.