getversion

Simple CLI for obtaining the current version on your package.json file

getversion

Simple CLI for obtaining the current version on your package.json file.

Install it globally if you want to have it in your path:

$ npm install -g getversion

Inside a Node.js package:

$ getversion
# will print 0.0.1 

Get the version of a package in another directory:

$ getversion node_modules/request