react-native-bundle-diff-match-patch

CLI tool to generate patch, apply patch, valid patch

Usage no npm install needed!

<script type="module">
  import reactNativeBundleDiffMatchPatch from 'https://cdn.skypack.dev/react-native-bundle-diff-match-patch';
</script>

README

react-native-bundle-diff-match-patch

CLI tool to generate patch, apply patch, valid patch

Install

$ yarn global add react-native-bundle-diff-match-patch

//or

$ npm install -g react-native-bundle-diff-match-patch

Usage

generate patch file

$ rnbp generate old-bundle-path new-bundle-path -o patch-file-name

apply patch file

$ rnbp patch old-bundle-path patch-file-name
// this will generate a new file with a postfix .patched


$ rnbp patch old-bundle-path patch-file-name -r
// this will replace the old bundle file

check patch file is valid

$ rnbp check-valid patch-file-name