Tx-Diff
Registers changes on a line by line bases and can apply those changes elsewhere.
Get Changes
let diff = new diffLib.getDiff(oldText, newText)
Apply Changes
let newText = diffLib.applyChanges(diff, oldText)
GitHub - MarcGodard/tx-diff: diffing text and generating corresponding changes remotely