node-version

Get Node current version

Latest version: 3.0.0 registry icon
Maintenance score
100
Safety score
100
Popularity score
49
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
3.0.0 0 0 0 0 0
2.0.0 0 0 0 0 0
1.2.0 0 0 0 0 0
1.1.3 0 0 0 0 0
1.1.2 0 0 0 0 0
1.1.0 0 0 0 0 0
1.0.0 0 0 0 0 0
0.1.0 0 0 0 0 0

Stability
Latest release:

3.0.0 - This version is safe to use because it has no known security vulnerabilities at this time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



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');