0.0.3 • Published 8 years ago

babel-plugin-transform-async-to-generator-2 v0.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
8 years ago

Build Status

babel-plugin-transform-async-to-generator-2

A fork of babel-plugin-transform-async-to-generator, with a little difference that this plugin keeps the original parameter names of an async function.

Installation

$ npm install babel-plugin-transform-async-to-generator-2

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-async-to-generator-2"]
}

Via CLI

$ babel --plugins transform-async-to-generator-2 script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-async-to-generator-2"]
});