Find Similar Packages for node-version
node-versionSimilar Packages:
Npm Package Weekly Downloads Trend
3 Years
🌟 Show real-time usage chart on node-version's README.md, just copy the code below.
## Usage Trend
[![Usage Trend of node-version](https://npm-compare.com/img/npm-trend/THREE_YEARS/node-version.png)](https://npm-compare.com/node-version#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 Show GitHub stars trend chart on node-version's README.md, just copy the code below.
## GitHub Stars Trend
[![GitHub Stars Trend of node-version](https://npm-compare.com/img/github-trend/node-version.png)](https://npm-compare.com/node-version)
Stat Detail
Package
Downloads
Stars
Size
Issues
Publish
License
node-version338,78868.64 kB23 years agoMIT
README for node-version

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