Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

regenerator-transform

0.13.3 • 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

2,376,764

version

0.13.3

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability