Socket
Socket
Sign inDemoInstall

babel-preset-es2015-node

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-es2015-node

Babel preset for all es2015 plugins needed with latest stable node.


Version published
Maintainers
1
Created
Source

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

.babelrc

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

Via CLI

$ babel script.js --preset es2015-node

Via Node API

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

FAQs

Package last updated on 25 Aug 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