jsondiffpatch-cli
v0.1.1
Published
A command line wrapper for jsondiffpatch
Downloads
8
Maintainers
Readme
jsondiffpatch-cli
A Command Line wrapper for using the jsondiffpatch library
How to use it
jsondiffpatch-cli OPERATION A.json B.json OUTPUT.json
It requires the operation name and at least two json file paths. The third path is the output.
diff
- File A: is the left side of the diff
- File B: is the right side of the diff
- Output: where the diff will be stored
jsondiffpatch-cli diff left.json right.json left-right.diff.json
patch
- File A: is the base file to apply the patch (in our example would be the left)
- File B: is the diff file to apply as patch
- Output: the result json after applying the patch
jsondiffpatch-cli patch left.json left-right.diff.json.json output-left.json
unpatch
- File A: is the base file to apply the patch (in our example would be the right)
- File B: is the diff file to apply as patch
- Output: the result json after applying the patch
jsondiffpatch-cli unpatch right.json left-right.diff.json.json output-right.json
Credits
This tool uses the jsondiffpatch library developed by Benjamin Eidelman