gulp-esformatter

v1.0.1
Beautify JavaScript code with esformatter
gulpplugin javascript ecmascript js code style conventions ast format and 4 more...

Deprecated

The esformatter project is no longer maintained.


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

Metadata

  • MIT
  • >=0.10.0
  • Sindre Sorhus
  • released 11/23/2014

Downloads

Maintainers