Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gulp-es6-transpiler with all npm packages installed. Try it out:

var gulpEs6Transpiler = require("gulp-es6-transpiler")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gulp-es6-transpiler v1.0.1

Transpile ES6 to ES5

gulp-es6-transpiler Build Status

Transpile ES6 to ES5 with es6-transpiler

Issues with the output should be reported on the es6-transpiler issue tracker.

Install

$ npm install --save-dev gulp-es6-transpiler

Usage

var gulp = require('gulp');
var es6transpiler = require('gulp-es6-transpiler');

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

API

es6transpiler(options)

Use the es6-transpiler options, except for filename, src, outputToConsole, outputFilename.

License

MIT © Sindre Sorhus

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free