• Stars
    star
    178
  • Rank 214,989 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Babel preset to make node@5 fully ES2015 compatible

babel-preset-es2015-node5

Babel preset to make node@5 fully ES2015 compatible.

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

Install

npm install --save-dev babel-preset-es2015-node5

Usage

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

Via .babelrc (recommended)

.babelrc

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

Via CLI

babel script.js --presets es2015-node5

Via Node API

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

License

MIT