node-ver

0.0.2 • Public • Published

node-ver Build Status

Get your environment's active version of node.

Install

$ npm install --save node-ver

Get the full version as a string, and the major, minor, patch as a number.

Usage

const version = require('node-ver');
 
version().full;
//=> '4.2.6'
 
version().major;
//=> 4
 
version().minor;
//=> 2
 
version().patch;
//=> 6

License

MIT © Michael Wuergler

Package Sidebar

Install

npm i node-ver

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • radiovisual