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)