join-json

1.0.8 • Public • Published

join-json

Merges multiple JSON objects or arrays together. Can be used as node module or from command-line.

npm install join-json

Node usage

const JoinJSON = require('join-json');
 
const joinjson = new JoinJSON();
joinjson.join([{a: 1}]);
joinjson.join([{b: 2}]);
console.log(joinjson.join([{c: 3}]));

Command-line usage

Usage

Usage: join-retire [options]

Options:
   -i, --include   JSON file to include
   -o, --out       The combined JSON file to write.  If not specified, writes out stdout.
   -f, --force     Forces overwrite of `output` if it exists
   -h, --help      This usage

Example

join-json -i a.json -i b.json -o out.json -f

License

MIT

Dependents (0)

Package Sidebar

Install

npm i join-json

Weekly Downloads

115

Version

1.0.8

License

MIT

Last publish

Collaborators

  • jamie.peabody