json-diff3
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

Three-way JSON Merge

CircleCI npm version codecov

Experimental 3-way JSON merge library.

Usage:

import { diff3 } from 'json-diff3';
 
const state1 = {
  hello: 1,
  world: 2,
};
const state2 = {
  hello: 1,
  world: 2,
  a: 2,
};
const state3 = {
  hello: 1,
  world: 3,
};
 
diff3(state1, state2, state3)
 
// => 
// {
//   hello: 1,
//   world: 3,
//   a: 2,
// }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    1
  • 1.1.0
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i json-diff3

Weekly Downloads

2

Version

1.1.1

License

Zlib

Unpacked Size

59.6 kB

Total Files

21

Last publish

Collaborators

  • marcello