Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    easy-beautifypublic

    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)

    install

    npm i easy-beautify

    Downloadsweekly downloads

    8

    version

    0.1.2

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar