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

NPM Version NPM Downloads GitHub Actions Codecov

Node-version

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

Installation

npm install node-version
# Or Yarn
yarn add node-version
# Or pnpm
pnpm add node-version

Quick Start

import currentVersion from '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

  • 3.0.0                                ...           latest (2 years ago)

8 Versions

  • 3.0.0                                ...           2 years ago
  • 2.0.0                                ...           5 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.3                                ...           7 years ago
  • 1.1.2                                ...           7 years ago
  • 1.1.0                                ...           7 years ago
  • 1.0.0                                ...           9 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE