gulp-unite-json

0.0.8 • Public • Published

gulp-unite-json

npm version

unite-json plugin for gulp

This will unite json files. If key is duplicated in the json united, throw error.

Usage

First, install gulp-unite-json as a development dependency:

npm install --save-dev gulp-unite-json

After that, add it to your gulpfile.js:

Code Example

var gulp_unite_json = require('gulp-unite-json');

gulp.src("./src/*.json")
	.pipe(gulp_unite_json("result.json")
	.pipe(gulp.dest("./dest"));

./src/test1.json

{"key1":"value1"}

./src/test2.json

{"key2":"value2"}

./dest/result.json

{"key1":"value1","key2":"value2"}

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i gulp-unite-json

Weekly Downloads

3

Version

0.0.8

License

MIT

Last publish

Collaborators

  • ichiwa