https://github.com/zephyrpersonal/react-native-bundle-diff-match-patch
a tiny cli to help diff/patch react-native bundle
https://github.com/zephyrpersonal/react-native-bundle-diff-match-patch
diff patch react-native
Last synced: about 2 months ago
JSON representation
a tiny cli to help diff/patch react-native bundle
- Host: GitHub
- URL: https://github.com/zephyrpersonal/react-native-bundle-diff-match-patch
- Owner: zephyrpersonal
- Created: 2019-07-03T06:09:16.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T10:55:33.000Z (about 7 years ago)
- Last Synced: 2025-10-26T09:23:09.565Z (8 months ago)
- Topics: diff, patch, react-native
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-bundle-diff-match-patch
CLI tool to generate patch, apply patch, valid patch
## Install
```bash
$ yarn global add react-native-bundle-diff-match-patch
//or
$ npm install -g react-native-bundle-diff-match-patch
```
## Usage
### generate patch file
```bash
$ rnbp generate old-bundle-path new-bundle-path -o patch-file-name
```
### apply patch file
```bash
$ 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
```bash
$ rnbp check-valid patch-file-name
```