babel-preset-async-to-bluebird
v1.1.0
Published
Babel preset to convert async functions to bluebird coroutines
Downloads
286
Maintainers
Readme
babel-preset-async-to-bluebird
Babel preset to convert async functions to bluebird coroutines.
Install
$ npm install --save-dev babel-preset-async-to-bluebird
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["async-to-bluebird"]
}
Via CLI
$ babel script.js --preset async-to-bluebird
Via Node API
require("babel-core").transform("code", {
presets: ["async-to-bluebird"]
});