npv

Prints out the current package version or any other package information you want.

Usage no npm install needed!

<script type="module">
  import npv from 'https://cdn.skypack.dev/npv';
</script>

README

npv - Node Package Version

Prints out the current package version or any other package information you want.

Install

npm install npv

Usage

Printing out the current package version

npv
1.0.0

Package name is quite easy...

npv name
my-node-project

...or just pass the property path.

npv repository.url
https://github.com/...

Storing package version in an environment variable

export PACKAGE_VERSION=$(npv)

License

Released under the MIT license.