0.1.0 • Published 8 years ago
gulp-flatten-json v0.1.0
gulp-flatten-json
A gulp plugin for transforming json files to flattened version
example
src/sample.json
{
"a": 1,
"b": {
"c": {
"d": 2
}
}
}
const gulp = require('gulp');
const gulpFlattenJson = require('gulp-flatten-json');
gulp.src('src/sample.json')
.pipe(gulpFlattenJson())
.pipe(gulp.dest('out'))
out/sample.json
{
"a": 1,
"b.c.d": 2
}
0.1.0
8 years ago