gulp-json-format

2.0.0 • Public • Published

gulp-json-format NPM version Build Status

A gulp plugin to parse and format JSON in files.

Usage

First, install gulp-json-format as a development dependency:

npm install gulp-json-format --save-dev

Then, add it to your gulpfile.js:

var jsonFormat = require('gulp-json-format');
 
gulp.src('manifest.json')
    .pipe(jsonFormat(4))
    .pipe(gulp.dest('.'));

API

jsonFormat([space])

space

Type: Number or String

See the space parameter for JSON.stringify() on MDN.

Package Sidebar

Install

npm i gulp-json-format

Weekly Downloads

855

Version

2.0.0

License

MIT

Last publish

Collaborators

  • mivir