Natural Performance Manager

    babel-preset-es2015-node

    6.1.1 • Public • Published

    babel-preset-es2015-node

    npm version

    Babel preset for the minimum necessary babel-preset-es2015 plugins needed for your version of node

    This preset automatically determines which version of node you are using via process.version and sets the minimum necessary babel-preset-es2015 plugins accordingly.

    All versions of node ≥4 are supported.

    Note: the major version of this package corresponds to the compatible major version of Babel (i.e. use babel-preset-es2015-node@6 with babel-cli@6.

    Install

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

    Usage

    Via .babelrc (Recommended)

    .babelrc

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

    Via CLI

    $ babel script.js --preset es2015-node

    Via Node API

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

    Keywords

    none

    Install

    npm i babel-preset-es2015-node

    Homepage

    babeljs.io/

    DownloadsWeekly Downloads

    7,647

    Version

    6.1.1

    License

    MIT

    Last publish

    Collaborators

    • rtsao