Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petertrr/kotlin-multiplatform-diff
Multiplaform kotlin library for calculating text differences. Based on java-diff-utils, supports JVM, JS and native targets.
https://github.com/petertrr/kotlin-multiplatform-diff
diff kmp kotlin kotlin-js kotlin-jvm kotlin-library kotlin-native multiplatform multiplatform-kotlin-library
Last synced: 1 day ago
JSON representation
Multiplaform kotlin library for calculating text differences. Based on java-diff-utils, supports JVM, JS and native targets.
- Host: GitHub
- URL: https://github.com/petertrr/kotlin-multiplatform-diff
- Owner: petertrr
- License: apache-2.0
- Created: 2021-02-18T08:23:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-10T11:08:41.000Z (29 days ago)
- Last Synced: 2024-11-03T02:32:09.658Z (5 days ago)
- Topics: diff, kmp, kotlin, kotlin-js, kotlin-jvm, kotlin-library, kotlin-native, multiplatform, multiplatform-kotlin-library
- Language: Kotlin
- Homepage:
- Size: 560 KB
- Stars: 85
- Watchers: 2
- Forks: 5
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Roadmap: ROADMAP.md
Awesome Lists containing this project
- awesome-kotlin-multiplatform - kotlin-multiplatform-diff - Multiplatform Kotlin library for calculating text differences. (Libraries / Utility)
README
# kotlin-multiplatform-diff
![Build and test](https://github.com/petertrr/kotlin-multiplatform-diff/workflows/Build%20and%20test/badge.svg)
[![License](https://img.shields.io/github/license/petertrr/kotlin-multiplatform-diff)](https://github.com/petertrr/kotlin-multiplatform-diff/blob/main/LICENSE)
[![codecov](https://codecov.io/gh/petertrr/kotlin-multiplatform-diff/branch/main/graph/badge.svg)](https://codecov.io/gh/petertrr/kotlin-multiplatform-diff)[![Releases](https://img.shields.io/github/v/release/petertrr/kotlin-multiplatform-diff)](https://github.com/petertrr/kotlin-multiplatform-diff/releases)
[![Maven Central](https://img.shields.io/maven-central/v/io.github.petertrr/kotlin-multiplatform-diff)](https://mvnrepository.com/artifact/io.github.petertrr)
[![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin)This is a port of [java-diff-utils](https://github.com/java-diff-utils/java-diff-utils) to Kotlin with multiplatform support.
All credit for the implementation goes to original authors.## Features
All features from version `4.12` of the original library are present, except for:
- fuzzy patches
- unified diff, which heavily uses file read/write and therefore needs a more complicated rewrite
- diff-utils-jgit, which uses JVM-only JGitPlease refer to the original guides for more information.
## Supported Platforms
Currently, artifacts for the following platforms are supported:
- JVM
- JS (both browser and Node.js)
- WebAssembly (JS and WASI)
- NativeThe supported Native targets are (following the Kotlin/Native [target support guidelines][1]):
| Tier 1 | Tier 2 | Tier 3 |
|:------------------|:------------------|:---------|
| macosX64 | linuxX64 | mingwX64 |
| macosArm64 | linuxArm64 | |[1]: https://kotlinlang.org/docs/native-target-support.html