node package manager

gulp-prettify

Prettify, format, beautify HTML.

gulp-prettify

Prettify, format, beautify HTML.

Install as a devDependency with npm:

$ npm i gulp-prettify -D
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.

Install dev dependencies:

$ npm i -d && npm test

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

Jon Schlinkert

Copyright © 2015 Jon Schlinkert Released under the MIT license.


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