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