node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

gulp-esformatter

gulp-esformatter Build Status

Beautify JavaScript code with esformatter

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

Install

$ npm install --save-dev gulp-esformatter

Usage

const gulp = require('gulp');
const esformatter = require('gulp-esformatter');
 
gulp.task('default', () =>
    gulp.src('src/app.js')
        .pipe(esformatter({indent: {value: '  '}}))
        .pipe(gulp.dest('dist'))
);

API

esformatter(options)

See the esformatter options.

Options are passed to esformatter.rc().

License

MIT © Sindre Sorhus