Create patch buffer with origin buffer with HDiffPatch
Patch compatible with HDiffPatch -SD
npm install --save node-hdiffpatchCompare two buffers and return a new hdiffpatch patch as return value.
Create diff file by streaming file paths (low memory). In sync mode returns
outDiffPath. In async mode, callback signature is (err, outDiffPath).
The diff format is the streaming compressed format; use patchStream to apply it.
Apply diff file to old file and write new file by streaming. In sync mode
returns outNewPath. In async mode, callback signature is (err, outNewPath).
After install, you can run:
hdp diff <oldFile> <newFile> <outDiff>
hdp patch <oldFile> <diffFile> <outNew>