eknkc / babel-preset-async-to-bluebird

Babel preset to convert async functions to bluebird coroutines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Babel preset to convert async functions to bluebird coroutines.


Languages

Language:JavaScript 100.0%