gulp-fix-json
v0.0.1
Published
Gulp plugin for fixing json files
Downloads
8
Readme
gulp-fix-json
Gulp plugin for fixing JSON files
This plugin is based on jsonic by Richard Rodger. It adds missing quotes and removes trailing commas in JSON.
Usage example:
var gulp = require('gulp')
, fixJson = require('gulp-fix-json')
gulp.task('fix-json', function() {
return gulp.src('example.json')
.pipe(fixJson())
.on('error', function(err) {
console.log('Error parsing json: ' + err.message);
})
.pipe(gulp.dest('.'))
});
To install:
npm install gulp-fix-json