diff3

A diff3 engine for nodejs

diff3 downloads diff3 version diff3 license

diff3類似套件:
npm下載趨勢
3 年
🌟 在 diff3 的 README.md 中顯示即時使用量圖表,只需複製下面的代碼。
## Usage Trend
[![Usage Trend of diff3](https://npm-compare.com/img/npm-trend/THREE_YEARS/diff3.png)](https://npm-compare.com/diff3#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 在 diff3 的 README.md 中顯示 GitHub stars 趨勢圖表,只需複製下面的代碼。
## GitHub Stars Trend
[![GitHub Stars Trend of diff3](https://npm-compare.com/img/github-trend/diff3.png)](https://npm-compare.com/diff3)
統計詳情
套件
下載數
Stars
大小
Issues
發布時間
許可
diff3587,2851311.9 kB2-MIT
diff3 的 README

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"]
}]