io.github.petertrr:kotlin-multiplatform-diff-mingwx64

A multiplatform Kotlin library for calculating text differences


Keywords
diff, kmp, kotlin, kotlin-js, kotlin-jvm, kotlin-library, kotlin-native, multiplatform, multiplatform-kotlin-library
License
Apache-2.0

Documentation

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 - targets 1.8+
  • JS - browser and nodejs
  • WebAssembly - wasmJs and wasmWasi
  • Native - supports all targets