Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-version

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-version - npm Package Compare versions

Comparing version 1.1.3 to 1.2.0

10

index.js

@@ -8,14 +8,10 @@ /*!

module.exports = (function() {
var version = process.version;
var version = process.versions.node;
if (version.indexOf('v') > -1) {
version = version.split('v')[1];
}
var split = version.split('.');
return {
original: process.version,
original: 'v' + version,
short: split[0] + '.' + split[1],
long: split[0] + '.' + split[1] + '.' + split[2],
long: version,
major: split[0],

@@ -22,0 +18,0 @@ minor: split[1],

{
"name": "node-version",
"version": "1.1.3",
"description": "Get NodeJS current version",
"version": "1.2.0",
"description": "Get Node current version",
"homepage": "https://github.com/srod/node-version",

@@ -18,13 +18,12 @@ "author": {

"engines": {
"node": ">=4.0.0"
"node": ">=6.0.0"
},
"keywords": [
"node",
"version"
],
"scripts": {
"clean": "rm -rf ./coverage",
"eslint": "eslint index.js || true",
"pretest": "npm run eslint",
"test": "jest",
"posttest": "npm run clean",
"release-patch": "npm version patch -m 'Bump %s' && git push --tags origin HEAD:master",

@@ -38,5 +37,5 @@ "release-minor": "npm version minor -m 'Bump %s' && git push --tags origin HEAD:master",

"devDependencies": {
"codecov": "3.0.0",
"eslint": "4.19.0",
"jest": "21.2.1"
"codecov": "3.0.2",
"eslint": "4.19.1",
"jest": "23.1.0"
},

@@ -48,4 +47,8 @@ "jest": {

"coverageDirectory": "./coverage/",
"collectCoverage": true
"collectCoverage": true,
"testPathIgnorePatterns": [
"/node_modules/",
".history"
]
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc