diff3
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/diff3 package

0.0.4 • Public • Published

diff3

Usage

var diff3Merge = require('diff3');
var a = ['a', 'text', 'file'];
var o = ['a', 'test', 'file'];
var b = ['a', 'toasty', 'filtered', 'file'];
var diff3 = diff3Merge(a, o, b);

Output

[{
    "ok": ["a"]
}, {
    "conflict": {
        "a": ["text"],
        "aIndex": 1,
        "o": ["test"],
        "oIndex": 1,
        "b": ["toasty", "filtered"],
        "bIndex": 1
    }
}, {
    "ok": ["file"]
}]

Readme

Keywords

Package Sidebar

Install

npm i diff3

Weekly Downloads

398,345

Version

0.0.4

License

MIT

Unpacked Size

11.9 kB

Total Files

5

Last publish

Collaborators

  • implausibility
  • gk-dev