regenerator-transform
Explode async and generator functions into a state machine.
Last updated 5 years ago by benjamn .
MIT · Repository · Original npm · Tarball · package.json
$ npm install regenerator-transform 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.15.2                                ...           latest (a year ago)
  • 0.15.2                                ...           next (a year ago)

36 Versions

  • 0.15.2                                ...           a year ago
  • 0.15.1                                ...           2 years ago
  • 0.15.0                                ...           3 years ago
  • 0.14.5                                ...           4 years ago
  • 0.14.4                                ...           5 years ago
  • 0.14.3                                ...           5 years ago
  • 0.14.2                                ...           5 years ago
  • 0.14.1                                ...           5 years ago
  • 0.14.0                                ...           6 years ago
  • 0.13.4                                ...           6 years ago
  • 0.13.3                                ...           6 years ago
  • 0.13.2                                ...           6 years ago
  • 0.13.1                                ...           6 years ago
  • 0.13.0                                ...           6 years ago
  • 0.12.4                                ...           6 years ago
  • 0.12.3                                ...           7 years ago
  • 0.12.2                                ...           7 years ago
  • 0.12.1                                ...           7 years ago
  • 0.12.0                                ...           7 years ago
  • 0.11.1                                ...           7 years ago
  • 0.11.0                                ...           7 years ago
  • 0.10.1                                ...           7 years ago
  • 0.10.0                                ...           7 years ago
  • 0.9.12                                ...           7 years ago
  • 0.9.11                                ...           8 years ago
  • 0.9.10                                ...           8 years ago
  • 0.9.9                                ...           8 years ago
  • 0.9.8                                ...           8 years ago
  • 0.9.7                                ...           8 years ago
  • 0.9.6                                ...           8 years ago
  • 0.9.5                                ...           8 years ago
  • 0.9.4                                ...           8 years ago
  • 0.9.3                                ...           8 years ago
  • 0.9.2                                ...           8 years ago
  • 0.9.1                                ...           8 years ago
  • 0.9.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 102
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE