text-diff-lib
v1.0.2
Published
text-diff lib
Downloads
4
Readme
JavaScript library to compare two files
install
npm install text-diff-lib
Importing
var diff = require('text-diff-lib')
Example
let originalFileText = fs.readFileSync(originalFile, 'utf8');
let diffTargetFileText = fs.readFileSync(diffTargetFile, 'utf8');
textDiff.diffTwoFileText(originalFile, diffTargetFile);