Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
node_modules
.npmignore
README.md
index.js
package.json

README.md

babel-preset-es2015

Babel preset for all es2015 plugins.

Install

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

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["es2015"]
}

Via CLI

$ babel script.js --presets es2015 

Via Node API

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