Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (19 sloc) 0.479 kb
98e1565 @srod Initial commit 0.1.0
authored
1
2 # Node-version
3
4 A quick module that returns current node version.
5
6 See server.js in examples/
7
8 ## Installation
9
10 npm install node-version
11
12 ## Quick Start
13
6df7831 @srod Updating readme
authored
14 var nodeVersion = new (require('node-version').version);
98e1565 @srod Initial commit 0.1.0
authored
15 var currentVersion = nodeVersion.getVersion();
16
17 /*
18 console.log(currentVersion);
19
20 {
21 original: 'v0.4.10', // same as process.version
22 short: '0.4',
23 long: '0.4.10',
24 major: '0',
25 minor: '4',
26 build: '10'
27 }
28 */
Something went wrong with that request. Please try again.