2.0.0 • Published 6 years ago

gulp-json-format v2.0.0

Weekly downloads
1,548
License
MIT
Repository
github
Last release
6 years ago

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.