1.0.1 • Published 3 years ago

diff-hg v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

diff-hg

A module to compare differences between text files.

Based on Hirschberg's algorithm of finding longest common subsequence (LCS). The main idea is an efficient memory usage. Thus it is feasible to compare large files.

Test publish.

Features

  • large files comparison
  • several files at once

How To Install

npm install diff-hg

Getting Started

const diff = require('diff-hg');
diff.compare('/path/to/file1', ['/path/to/file2', '/path/to/file3'], (err) => {
    if (err) {
        console.error(err);
    } else {
        console.log('Succeeded!');
    }
});