dotsunited-merge-json

Simple command line utility for merging json files.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
dotsunited-merge-json
803.0.07 years ago8 years agoMinified + gzip package size for dotsunited-merge-json in KB

Readme

dotsunited-merge-json
Simple command line utility for merging JSON files.

Installation

npm install dotsunited-merge-json -g

Usage

Merge JSON files provided as arguments:
dotsunited-merge-json file1.json file2.json > merged.json

Merge all JSON files in the current directory:
find . -name "*.json" -exec dotsunited-merge-json > ./merged.json {} \;

Pretty-print JSON with jq:
find . -name "*.json" -print0 | xargs -0 dotsunited-merge-json | jq .

License

Copyright (c) 2015-2016 Dots United GmbH. Released under the MIT license.