0.1.0 • Published 11 years ago
gulp-clean-json v0.1.0
gulp-clean-json
clean-json plugin for gulp
Usage
First, install gulp-clean-json as a development dependency:
npm install --save-dev git://github.com/ArturKp/gulp-clean-json.git#masterThen, add it to your gulpfile.js:
var clean-json = require("gulp-clean-json");
gulp.src("./src/*.ext")
.pipe(clean-json)
.pipe(gulp.dest("./dist"));API
I use this to remove empty values from translation files before production. Recursive function that checks the nodes for empty values and remomves those.



