Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 6df7831364
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (19 sloc) 0.479 kb

Node-version

A quick module that returns current node version.

See server.js in examples/

Installation

npm install node-version

Quick Start

var nodeVersion = new (require('node-version').version);
var currentVersion = nodeVersion.getVersion();

/*
console.log(currentVersion);

{
    original: 'v0.4.10', // same as process.version
    short: '0.4',
    long: '0.4.10',
    major: '0',
    minor: '4',
    build: '10'
}
*/
Jump to Line
Something went wrong with that request. Please try again.