broccoli-regenerator

Transpile ES6 generator functions to ES5

npm install broccoli-regenerator
2 downloads in the last week
11 downloads in the last month

broccoli-regenerator Build Status

Transpile ES6 generator functions to ES5 with Regenerator

Issues with the output should be reported on the Regenerator issue tracker.

Install

$ npm install --save broccoli-regenerator

Usage

var regenerator = require('broccoli-regenerator');
tree = regenerator(tree, options);

API

regenerator(options)

options.includeRuntime

Type: Boolean
Default: false

A small runtime library (less than 1KB compressed) is required to provide the wrapGenerator function. You can install it either as a CommonJS module or as a standalone .js file, whichever you prefer.

License

MIT © Sindre Sorhus

npm loves you