https://github.com/jimmydaddy/react-native-bs-diff-patch
diff/patch files with React Native
https://github.com/jimmydaddy/react-native-bs-diff-patch
android bs-diff-patch file-diff-patch ios react-native
Last synced: about 1 year ago
JSON representation
diff/patch files with React Native
- Host: GitHub
- URL: https://github.com/jimmydaddy/react-native-bs-diff-patch
- Owner: JimmyDaddy
- License: mit
- Created: 2024-01-19T07:30:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-21T04:44:00.000Z (over 1 year ago)
- Last Synced: 2025-04-06T08:46:23.786Z (about 1 year ago)
- Topics: android, bs-diff-patch, file-diff-patch, ios, react-native
- Language: C
- Homepage:
- Size: 2.94 MB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# react-native-bs-diff-patch
rn bs diff patch file
## Installation
```sh
npm install react-native-bs-diff-patch
```
## Usage
```js
import { diff, patch } from 'react-native-bs-diff-patch';
// ...
/**
* generate patch file from old file and new file
*/
await diff(oldFile, newFile, patchFile);
// generate new file from old file and patch file
await patch(oldFile, newFile, patchFile);
```
## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)