gulp-js-prettify
Prettify, format, beautify JavaScript.
Last updated 7 years ago by mackers .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-js-prettify 
SYNC missed versions from official npm registry.

Prettify JavaScript with js-beautify.

Getting Started

Install the module with: npm install gulp-js-prettify

Usage

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

gulp.task('prettify', function() {
  gulp.src('./src/foo.js')
    .pipe(prettify({collapseWhitespace: true}))
    .pipe(gulp.dest('./src')) // edit in place
});

See the js-beautify docs for options.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Authors

License

Copyright (c) 2014 David McNamara, Jon Schlinkert Licensed under the MIT license.

Current Tags

  • 0.1.0                                ...           latest (7 years ago)

1 Versions

  • 0.1.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (4)
Dev Dependencies (2)

Copyright 2014 - 2017 © taobao.org |