Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mischov/clj-diffmatchpatch
https://github.com/mischov/clj-diffmatchpatch
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mischov/clj-diffmatchpatch
- Owner: mischov
- License: apache-2.0
- Created: 2013-04-13T19:16:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-04-13T19:54:17.000Z (over 11 years ago)
- Last Synced: 2024-10-13T05:23:00.099Z (3 months ago)
- Language: Java
- Size: 138 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clj-diffmatchpatch
A Clojure wrapper for the Java implimentation of google-diff-match-patch by Neil Fraser.
```clojure
[clj-diffmatchpatch "0.0.9.3"]
```## Usage
```clojure
(require '[clj-diffmatchpatch :as dmp])
(dmp/wdiff "I am an example." "I am a simple example.")
```## Status
clj-diffmatchpatch is currently in alpha.
1. From the google-diff-match-patch api, currently implemented wrapper functions:
```
diff cleanup-semantic pretty-html patch-make patch-to-text patch-from-text patch-apply
```1. Original api functions currently updated to take and output edn instead of java objects / structures:
```
diff cleanup-semantic
```1. Original api functions currently updated to take edn:
```
patch-make
```1. Convienience function added:
```
wdiff
```## License
Distributed under the Apache 2.0 license.