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

0.0.3 • Public • Published

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"]
});

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

11

Version

0.0.3

License

MIT

Last publish

Collaborators

  • theicebear