node-version
Advanced tools
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" | ||
] | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4998
17