Beautify JavaScript code with esformatter
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.editorconfig
.gitattributes
.gitignore
.jshintrc
.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

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