babel-plugin-transform-async-functions

Compile async functions to ES5

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-plugin-transform-async-functions
6.22.06 years ago7 years agoMinified + gzip package size for babel-plugin-transform-async-functions in KB

Readme

babel-plugin-transform-async-functions
Compile async functions to ES5

Installation

$ npm install babel-plugin-transform-async-functions

Usage

Via .babelrc (Recommended)

.babelrc
{
  "plugins": ["transform-async-functions"]
}

Via CLI

$ babel --plugins transform-async-functions script.js

Via Node API

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