Swatinem / diff

implementation of myers diff algorithm
82 stars 9 forks source link

diff

implementation of myers diff algorithm

Build Status Coverage Status Dependency Status

This uses the An O(ND) Difference Algorithm and Its Variations Also see http://simplygenius.net/Article/DiffTutorial2 and http://www.mathertel.de/Diff/ViewSrc.aspx for more inspiration

Installation

$ npm install diff
$ component install Swatinem/diff

Usage

diff(a, b, [eql(a, b)])

Given two arrays (or array-likes, such as strings) a and b and an optional equal function eql, this will return an array with the following operations:

License

LGPLv3