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

gulp-pretty-data

0.1.2 • Public • Published

gulp-pretty-data

Minify or prettify xml, json, css, sql.

Getting Started

Install the module with: npm install gulp-pretty-data --save-dev

Usage

var gulp       = require('gulp');
var prettyData = require('gulp-pretty-data');
 
gulp.task('minify', function() {
  gulp.src('src/**.{xml,json,xlf,svg}')
    .pipe(prettyData({
      type: 'minify',
      preserveComments: true,
      extensions: {
        'xlf': 'xml',
        'svg': 'xml'
      }
    }))
    .pipe(gulp.dest('dist'))
});
 
gulp.task('prettify', function() {
  gulp.src('src/**.{xml,json}')
    .pipe(prettyData({type: 'prettify'}))
    .pipe(gulp.dest('dist'))
});

See the pretty data node plugin for more info.

Author

License

Copyright (c) 2014 Neil Carpenter Licensed under the MIT license.

To do

Add tests

install

npm i gulp-pretty-data

Downloadsweekly downloads

367

version

0.1.2

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar