timhwang21-gulp-esformatter
v6.1.1
Published
Beautify JavaScript code with esformatter
Downloads
3
Maintainers
Readme
gulp-esformatter
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
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'));
});
API
esformatter(options)
See the esformatter options.
Options are passed through esformatter.rc().
License
MIT © Sindre Sorhus