diff-hg

1.0.1 • Public • Published

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.

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!');
    }
});

Readme

Keywords

Package Sidebar

Install

npm i diff-hg

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • cannoneer