babel-plugin-transform-async-to-bluebird-coroutines
Turn async functions into a Bluebird coroutine
Installation
$ npm install babel-plugin-transform-async-to-bluebird-coroutines
Usage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["transform-async-to-bluebird-coroutines"]
}
Via CLI
$ babel --plugins transform-async-to-bluebird-coroutines script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["transform-async-to-bluebird-coroutines"]
});