gulp-esformatter

Beautify JavaScript code with esformatter

gulp-esformatter

Beautify JavaScript code with esformatter

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

$ npm install --save-dev gulp-esformatter
var gulp = require('gulp');
var esformatter = require('gulp-esformatter');
 
gulp.task('default', function () {
    return gulp.src('src/app.js')
        .pipe(esformatter({indent: {value: '  '}}))
        .pipe(gulp.dest('dist'));
});

See the esformatter options.

Options are passed through esformatter.rc().

MIT © Sindre Sorhus