gulp-regenerator

Transpile ES6 generator functions to ES5

npm install gulp-regenerator
1 downloads in the last day
11 downloads in the last week
13 downloads in the last month

gulp-regenerator Build Status

Transpile ES6 generator functions to ES5 with Regenerator

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

Install

Install with npm

npm install --save-dev gulp-regenerator

Example

var gulp = require('gulp');
var regenerator = require('gulp-regenerator');

gulp.task('default', function () {
    gulp.src('src/app.js')
        .pipe(regenerator())
        .pipe(gulp.dest('dist'));
});

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