Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

regenerator-transform

0.14.5 • Public • Published

regenerator-transform

Transform async/generator functions with regenerator

Installation

$ npm install regenerator-transform

Usage

Via .babelrc (Recommended)

.babelrc

// without options
{
  "plugins": ["regenerator-transform"]
}
// with options
{
  "plugins": [
    ["regenerator-transform", {
      asyncGenerators: false, // true by default
      generators: false, // true by default
      async: false // true by default
    }]
  ]
}

Via CLI

$ babel --plugins regenerator-transform script.js

Via Node API

require("@babel/core").transformSync("code", {
  plugins: ["regenerator-transform"]
});

Install

npm i regenerator-transform

DownloadsWeekly Downloads

12,466,923

Version

0.14.5

License

MIT

Unpacked Size

128 kB

Total Files

19

Last publish

Collaborators

  • avatar