New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-es2015-node6

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

babel-preset-es2015-node6

Babel preset to make node@6 fully ES2015 compatible

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
865
decreased by-19.16%
Maintainers
1
Weekly downloads
 
Created
Source

babel-preset-es2015-node6

Babel preset to make node@6 fully ES2015 compatible.

Node@6 has great ES2015 support, this module just adds missing features:

Install

$ npm install --save-dev babel-preset-es2015-node6

Usage

Read "Configuring Babel 6" article for more information about babel@6 configuration.

NOTE If you're using object-rest feature of stage-2, use es2015-node6/object-rest instead of es2015-node6 (It's added back destructuring, parameters), or down to ^0.1.4. Waiting #2, T7086 fix.

.babelrc

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

Via CLI

babel script.js --presets es2015-node6

Via Node API

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

Options

  • loose - Enable "loose" transformations for any plugins in this preset that allow them (Disabled by default).
  • funcName - If your node version is less than 6.5, consider enabling function name support.
{
  presets: [
    ["es2015-node6", { "loose": true }]
  ]
}

Credits

License

MIT

Keywords

FAQs

Package last updated on 07 Nov 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