Wondering what’s next for npm?Check out our public roadmap! »

    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,
    // }

    Install

    npm i json-diff3

    DownloadsWeekly Downloads

    2

    Version

    1.1.1

    License

    Zlib

    Unpacked Size

    59.6 kB

    Total Files

    21

    Last publish

    Collaborators

    • avatar