in

Merge Multiple JSON Files using GULP

Here’s a quick solution in merging multiple JSON files into one JSON file using GULP.

Install Node.JS https://nodejs.org/en/

Run terminal/shell

npm i gulp -g
npm i gulp --save
npm i gulp-controlled-merge-json

Create gulpfile.js

var gulp = require('gulp');
var merge = require('gulp-controlled-merge-json');
gulp.task ("default"), function(){
gulp.src("*.json")
.pipe(merge("combined.json"))
.pipe(gulp.dest("./dist/"))
});

Run gulp

Let me know below if you have others way to do it.

This post was created with our nice and easy submission form. Create your post!

What do you think?

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

GIPHY App Key not set. Please check settings

Loading…

0

These factory workers get paid to go to school

Hacker Breaks Down 26 Hacking Scenes from Movies & TV | WIRED