CLI tool to generate patch, apply patch, valid patch
$ yarn global add diff-match-patch-cli
//or
$ npm install -g diff-match-patch-cli
$ dmp generate old-bundle-path new-bundle-path -o patch-file-name
$ dmp patch old-file-name patch-file-name
// this will generate a new file with a postfix .patched
$ dmp patch old-file-name patch-file-name -o patched-file-name
$ dmp patch old-file-name patch-file-name -r
// this will replace the old file
$ dmp check-valid patch-file-name