json-merge-patch-cli

1.0.2 • Public • Published

json-merge-patch

Merges two JSON files together.

Example:

// Patch
{
  "foo": "PATCH FOO",
  "bar": "baz",
  "biff": null
}
// Source i.e. target
{
  "foo": "foo",
  "biff": "bones"
}
json-merge-patch -p patch.json -s source.json
// Result
{
  "foo": "PATCH FOO",
  "bar": "baz"
}

Works deeply. YMMV with arrays. Great for merging bower.json

TBA: support for json-merge-patch library's other commands.

Readme

Keywords

none

Package Sidebar

Install

npm i json-merge-patch-cli

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • bennyp