Turn async functions into ES2015 generators
$ npm install babel-plugin-transform-async-to-generator
.babelrc
{
"plugins": ["transform-async-to-generator"]
}
$ babel --plugins transform-async-to-generator script.js
require("babel-core").transform("code", {
plugins: ["transform-async-to-generator"]
});