Skip to content

Multiplaform kotlin library for calculating text differences. Based on java-diff-utils, supports JVM, JS and native targets.

License

Notifications You must be signed in to change notification settings

petertrr/kotlin-multiplatform-diff

Folders and files

NameName
Last commit message
Last commit date
Jan 31, 2025
Mar 28, 2024
Jan 31, 2025
Jun 11, 2024
Jan 31, 2025
Feb 10, 2021
Jun 11, 2024
Feb 11, 2021
Jan 31, 2025
Mar 13, 2021
Mar 15, 2021
Jun 21, 2024
Jun 11, 2024
Nov 10, 2023
Jan 31, 2025
Jan 31, 2025
Jan 25, 2024
Jan 31, 2025

Repository files navigation

kotlin-multiplatform-diff

Build and test Codecov License Maven Central Awesome Kotlin Badge Kotlin

This is a port of java-diff-utils to Kotlin with multiplatform support.
All credit for the implementation goes to the original authors.

Features

All features from version 4.15 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 JGit

Refer to the original wiki for more information.

Supported platforms

  • JVM
  • JS (browser and Node.js)
  • WebAssembly (WASM/JS and WASM/WASI)
  • Native

Supported Native targets are (following the Kotlin/Native target support guidelines):

Tier 1 Tier 2 Tier 3
macosX64 linuxX64 mingwX64
macosArm64 linuxArm64