node-version
Get Node current version
Last updated 10 months ago by srod .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-version 
SYNC missed versions from official npm registry.

NPM Version NPM Downloads Linux Build Windows Build Circle CI Build Codecov

Dependency Status devDependency Status

Node-version

A quick module that returns current node version parsed into parts.

Installation

yarn add node-version

Or

npm install node-version

Quick Start

var currentVersion = require('node-version');

/*
console.log(currentVersion);

{
    original: 'v0.4.10', // same as process.version
    short: '0.4',
    long: '0.4.10',
    major: '0',
    minor: '4',
    build: '10'
}
*/

Warning

Version 1.0.0 break 0.1.0 since its API changes.

Change

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

To

var currentVersion = require('node-version');

Current Tags

  • 2.0.0                                ...           latest (10 months ago)

7 Versions

  • 2.0.0                                ...           10 months ago
  • 1.2.0                                ...           2 years ago
  • 1.1.3                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           5 years ago
  • 0.1.0                                ...           9 years ago

Copyright 2014 - 2016 © taobao.org |