easy-beautify

0.1.2 • Public • Published

easy-beautify

Beautifier for javascript, html and css in gulp tasks.

Installation

npm install easy-beautify --save

Usage

    var beautify = require('easy-beautify');
	var opts = {
	    "indent_size": 4,
	    "indent_char": " ",
	    "eol": "\n",
	    "indent_level": 0,
	    "indent_with_tabs": false,
	    "preserve_newlines": false,
	    "beautifier": "html"
	};

    gulp.task('beautify-html', function() {
	    return gulp.src('./html/user_form.html')
	        .pipe(beautify(opts))
	        .pipe(gulp.dest('./dist'));
	});

	opts.beautifier = "js";
	opts.preserve_newlines = true;

    gulp.task('beautify-html', function() {
	    return gulp.src('./js/userBO.js')
	        .pipe(beautify(opts))
	        .pipe(gulp.dest('./dist'));
	});

Release History

  • 0.1.0 October/2015 - Initial release
  • 0.1.1 October/2015 - Fix README.md
  • 0.1.2 October/2015 - Fix index.js: remove debug code

License

(MIT License)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    0
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i easy-beautify

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • cneryjr