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

babel-preset-es2015-node

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-es2015-node - npm Package Compare versions

Comparing version 6.0.1 to 6.1.0

24

index.js

@@ -0,5 +1,23 @@

var semver = require("semver");
var pluginsList = [
require("babel-plugin-transform-es2015-modules-commonjs")
];
if (semver.lt(process.version, '6.0.0')) {
pluginsList.push(
require("babel-plugin-transform-es2015-destructuring"),
require("babel-plugin-transform-es2015-function-name"),
require("babel-plugin-transform-es2015-parameters"),
require("babel-plugin-transform-es2015-shorthand-properties"),
require("babel-plugin-transform-es2015-sticky-regex"),
require("babel-plugin-transform-es2015-unicode-regex"));
}
if (semver.lt(process.version, '5.0.0')) {
pluginsList.push(require("babel-plugin-transform-es2015-spread"));
}
module.exports = {
plugins: [
require("babel-plugin-transform-es2015-modules-commonjs"),
]
plugins: pluginsList
};

14

package.json
{
"name": "babel-preset-es2015-node",
"version": "6.0.1",
"version": "6.1.0",
"description": "Babel preset for all es2015 plugins needed with latest stable node.",

@@ -11,7 +11,15 @@ "author": "Ryan Tsao <ryan.j.tsao@gmail.com>",

"engines": {
"node": ">= 6.0.0"
"node": ">= 4.0.0"
},
"dependencies": {
"babel-plugin-transform-es2015-modules-commonjs": "6.x"
"babel-plugin-transform-es2015-destructuring": "6.x",
"babel-plugin-transform-es2015-function-name": "6.x",
"babel-plugin-transform-es2015-modules-commonjs": "6.x",
"babel-plugin-transform-es2015-parameters": "6.x",
"babel-plugin-transform-es2015-shorthand-properties": "6.x",
"babel-plugin-transform-es2015-spread": "6.x",
"babel-plugin-transform-es2015-sticky-regex": "6.x",
"babel-plugin-transform-es2015-unicode-regex": "6.x",
"semver": "5.1.0"
}
}

@@ -5,16 +5,10 @@ # babel-preset-es2015-node

This preset determines which node version you are using via `process.version` and accordingly sets the necessary ES2015 Babel plugins.
All versions of node >=4 are supported.
## Install
#### Node 6
```sh
$ npm install --save-dev babel-preset-es2015-node@6
$ npm install --save-dev babel-preset-es2015-node
```
#### Node 5
```sh
$ npm install --save-dev babel-preset-es2015-node@5
```
#### Node 4
```sh
$ npm install --save-dev babel-preset-es2015-node@4
```

@@ -21,0 +15,0 @@ ## Usage

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