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.0.0 to 1.1.0

.codeclimate.yml

6

index.js

@@ -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;

30

package.json
{
"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
Makefile

Sorry, the diff of this file is not supported yet

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