get-npm-package-version
v1.1.1
Published
get npm package version
Downloads
278
Readme
description
get npm package version
Install
npm i get-npm-package-version
API
const version = require('get-npm-package-version')(packageName[, { registry, timeout }]);
packageName
— packageNameregistry
— npm registry when getting versiontimeout
— timeout when getting version
return
- return
null
when timeout or error happens - return version when getting version successfully
License
ISC