Beautify JavaScript code with esformatter
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
index.js
license
package.json
readme.md

readme.md

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