node-version
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -0,1 +1,7 @@ | ||
/*! | ||
* node-version | ||
* Copyright(c) 2011-2017 Rodolphe Stoclin | ||
* MIT Licensed | ||
*/ | ||
module.exports = (function() { | ||
@@ -2,0 +8,0 @@ var version = process.version; |
{ | ||
"name": "node-version", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Get NodeJS current version", | ||
@@ -11,2 +11,3 @@ "homepage": "https://github.com/srod/node-version", | ||
}, | ||
"license": "MIT", | ||
"main": "./index.js", | ||
@@ -17,8 +18,31 @@ "repository": { | ||
}, | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"keywords": [ | ||
"version" | ||
], | ||
"scripts": { | ||
"clean": "rm -rf ./coverage", | ||
"eslint": "eslint index.js || true", | ||
"pretest": "npm run eslint", | ||
"test": "jest", | ||
"test-cov": "npm run pretest && jest --coverage", | ||
"posttest": "npm run clean", | ||
"release-patch": "npm version patch -m 'Bump %s' && git push --tags origin HEAD:master", | ||
"release-minor": "npm version minor -m 'Bump %s' && git push --tags origin HEAD:master", | ||
"release-major": "npm version major -m 'Bump %s' && git push --tags origin HEAD:master", | ||
"publish-latest": "npm publish", | ||
"publish-beta": "npm publish --tag beta" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"semver": "^5.0.1" | ||
"eslint": "3.19.0", | ||
"jest": "20.0.4" | ||
}, | ||
"jest": { | ||
"notify": true, | ||
"verbose": true, | ||
"testEnvironment": "node" | ||
} | ||
} | ||
} |
@@ -1,5 +0,11 @@ | ||
[![Dependency Status](http://img.shields.io/david/srod/node-version.svg?style=flat)](https://david-dm.org/srod/node-version) | ||
[![devDependency Status](http://img.shields.io/david/dev/srod/node-version.svg?style=flat)](https://david-dm.org/srod/node-version#info=devDependencies) | ||
[![NPM version](http://img.shields.io/npm/v/node-version.svg?style=flat)](https://www.npmjs.org/package/node-version) | ||
[![NPM Version][npm-version-image]][npm-url] | ||
[![NPM Downloads][npm-downloads-image]][npm-url] | ||
[![Linux Build][travis-image]][travis-url] | ||
[![Windows Build][appveyor-image]][appveyor-url] | ||
[![Code Climate][codeclimate-image]][codeclimate-url] | ||
[![Test Coverage][codeclimatecoverage-image]][codeclimatecoverage-url] | ||
[![Dependency Status][dependency-image]][dependency-url] | ||
[![devDependency Status][devdependency-image]][devdependency-url] | ||
# Node-version | ||
@@ -12,2 +18,6 @@ | ||
```shell | ||
yarn add node-version | ||
``` | ||
Or | ||
```shell | ||
npm install node-version | ||
@@ -42,3 +52,3 @@ ``` | ||
```js | ||
var currentVersion = new (require('../lib/node-version').version); | ||
var currentVersion = new (require('node-version').version); | ||
``` | ||
@@ -51,1 +61,17 @@ | ||
``` | ||
[npm-version-image]: https://img.shields.io/npm/v/node-version.svg | ||
[npm-downloads-image]: https://img.shields.io/npm/dm/node-version.svg | ||
[npm-url]: https://npmjs.org/package/node-version | ||
[travis-image]: https://img.shields.io/travis/srod/node-version/master.svg?label=linux | ||
[travis-url]: https://travis-ci.org/srod/node-version | ||
[appveyor-image]: https://img.shields.io/appveyor/ci/srod/node-version/master.svg?label=windows | ||
[appveyor-url]: https://ci.appveyor.com/project/srod/node-version | ||
[dependency-image]: https://img.shields.io/david/srod/node-version.svg?style=flat | ||
[dependency-url]: https://david-dm.org/srod/node-version | ||
[devdependency-image]: https://img.shields.io/david/dev/srod/node-version.svg?style=flat | ||
[devdependency-url]: https://david-dm.org/srod/node-version#info=devDependencies | ||
[codeclimate-image]: https://codeclimate.com/github/srod/node-version/badges/gpa.svg | ||
[codeclimate-url]: https://codeclimate.com/github/srod/node-version | ||
[codeclimatecoverage-image]: https://codeclimate.com/github/srod/node-version/badges/coverage.svg | ||
[codeclimatecoverage-url]: https://codeclimate.com/github/srod/node-version/coverage |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
90861
12
20
75
0
2