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

babel-preset-eslatest-node6

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-eslatest-node6

Babel preset for the latest ECMAScript specification for Node v6

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

babel-preset-eslatest-node6

Build Status

Babel preset to make Node v6 fully compatible with the latest ECMAScript specification. This includes all finished proposals but not stage 0 to 3 proposals.

It intentionally won't compile things that are already natively supported by Node v6.

Included plugins

Missing features

For Object.values/Object.entries, String padding or Object.getOwnPropertyDescriptors support, use babel-polyfill or transform-runtime.

Install

npm install --save-dev babel-preset-eslatest-node6

Usage

.babelrc

{
  "presets": ["eslatest-node6"]
}

Note: if you are using object rest/spread, you will need to add a few additional plugins to make it work:

npm install --save-dev \
  babel-plugin-transform-es2015-destructuring \
  babel-plugin-transform-es2015-parameters \
  babel-plugin-transform-object-rest-spread
{
  "presets": ["eslatest-node6"],
  "plugins": [
    "transform-es2015-destructuring",
    "transform-es2015-parameters",
    ["transform-object-rest-spread", { "useBuiltIns": true }]
  ]
}

Via CLI

babel script.js --presets eslatest-node6

Via Node API

require('babel-core').transform('code', {
  presets: ['eslatest-node6'],
})

Options

  • loose - Enable "loose" transformations for any plugins in this preset that allow them (disabled by default).
{
  "presets": [
    ["eslatest-node6", { "loose": true }]
  ]
}

Credits

Inspired by babel-preset-es2015-node6

Keywords

FAQs

Package last updated on 12 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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