0.1.0 • Published 3 years ago
gulp-json-mta v0.1.0
gulp-json-mta
This plugin is fork of gulp-json-concat. The output file without any settings is now array instead of object and doesn't exist input file names.
Install
$ npm i -D gulp-json-mta
Usage
const gulp = require('gulp');
const mergeJSONtoArray = require('gulp-json-mta');
const mergeJSON = () => {
return gulp.src('pathToFolder/*.json')
.pipe(mergeJSONtoArray('outputFileName.json', (data) => {
let buffer = Buffer.from(JSON.stringify(data));
return buffer;
}))
.pipe(gulp.dest('dist'));
}
exports.default = mergeJSON;
License
MIT
0.1.0
3 years ago