get-token-user10
v0.10.1
Published
Explode async and generator functions into a state machine.
Downloads
1
Maintainers
Readme
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").transform("code", {
plugins: ["regenerator-transform"]
});