Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Get NodeJS current version
JavaScript
tree: 6df7831364

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
.gitignore
.npmignore
Readme.md
index.js
package.json

Readme.md

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'
}
*/
Something went wrong with that request. Please try again.