Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-preset-koa2-node7

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-preset-koa2-node7

Babel preset for Koa 2 running with node 7

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

babel-preset-koa2-node7

Babel preset for koa2 running with node7.

Node@7 has already great ES2017 support, but there are few things still missing and this module adds them:

Note: This project is forked from tengattack/babel-preset-es2017-node7, as node 7 still has async/await behind a flag and its not production ready, so this module covers that up by adding transform-async-to-generator.

Install

$ npm install --save-dev babel-preset-koa2-node7

Usage

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

Node run

node script.js

.babelrc

{
  "presets": ["es2017-node7"]
}

Via CLI

babel script.js --presets es2017-node7

Via Node API

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

Credits

License

MIT

Keywords

FAQs

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