babel-helper-remap-koa2-async-to-generator
Turn async functions into ES2015 generators (Koav2 -> Koav1).
Last updated 3 years ago by gerard2p .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-helper-remap-koa2-async-to-generator 
SYNC missed versions from official npm registry.

babel-helper-remap-koa2-async-to-generator

Turn async functions into ES2015 generators (Koav2 -> Koav1).

Installation

$ npm install babel-helper-remap-koa2-async-to-generator

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["transform-koa2-async-to-generator"]
}

Via CLI

$ babel --plugins transform-koa2-async-to-generator script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["transform-koa2-async-to-generator"]
});

Current Tags

  • 1.0.4                                ...           latest (3 years ago)

5 Versions

  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 54
Dependencies (5)

Copyright 2014 - 2016 © taobao.org |