gulp-esformatter
v1.0.0 gulpplugin javascript ecmascript js code style conventions ast format and 4 more...
Deprecated
The esformatter
project is no longer maintained.
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
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
npm i [email protected]
Metadata
- MIT
- >=0.10.0
- Sindre Sorhus
- released 8/14/2014