get-pkg-version
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

get-package-version

Lightweight utility for retrieving the version of globally installed npm packages

npm Version Badge npm Downloads Badge License Badge

CircleCI Badge AppVeyor Badge Test Results Badge Codecov Badge Sonar Quality Gate Badge

Feature Completion Notice

Please note that we consider this package to be feature complete. We will continue to maintain and support this package by fixing any bugs discovered, updating dependency versions, etc. We will also consider PRs/Enhancement requests, but we do not have additional development activities planned at this time.

CLI

Install the package globally:

npm install -g get-pkg-version

Use it to retreive to retrieve a package version like this:

get-pkg-version <pkg-name>

For example: get-pkg-version get-pkg-version

API

Install the package into your project:

npm install --save get-pkg-version

Just call the function with the name of the package you want the get the version of:

import getPackageVersion = require('get-pkg-version');
 
getPackageVersion('package-name-you-want-version-of').then((version) => {
    console.log(version);
});

Initially created by this swell generator!

Readme

Keywords

none

Package Sidebar

Install

npm i get-pkg-version

Weekly Downloads

5

Version

1.1.4

License

MIT

Unpacked Size

8.22 kB

Total Files

6

Last publish

Collaborators

  • beverts312
  • calebcartwright
  • ronswanson
  • swellbot
  • traviskosarek