gulp-prettify

Prettify, format, beautify HTML.


Keywords
beautify, code, format, gulp, gulpplugin, html, indent, js-beautify, plugin, prettify
License
MIT
Install
npm install gulp-prettify@0.5.0

Documentation

gulp-prettify NPM version

Prettify, format, beautify HTML.

Install

Install as a devDependency with npm:

$ npm i gulp-prettify -D

Usage

var gulp = require('gulp');
var prettify = require('gulp-prettify');

gulp.task('prettify', function() {
  gulp.src('src/*.html')
    .pipe(prettify({indent_size: 2}))
    .pipe(gulp.dest('dist'))
});

Other examples are in the example folder.

See the js-beautify docs for options.

Related projects

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb on December 27, 2015.