Skip to content

hoperyy/get-npm-package-version

Repository files navigation

Npm Version Node Version Build Status Coverage Status

description

get npm package version

Install

npm i get-npm-package-version

API

const version = require('get-npm-package-version')(packageName[, { registry, timeout }]);
  • packageName — packageName
  • registry — npm registry when getting version
  • timeout — timeout when getting version

return

  • return null when timeout or error happens
  • return version when getting version successfully

License

ISC

About

get npm package version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published