Compare two texts and get structured diffs with statistics. Supports unified patch, JSON array, and inline word-level formats. Runs locally โ zero latency.
Compare two text inputs and get a structured diff showing additions, deletions, and unchanged content. Choose between three output formats: unified (standard patch format), json (line-by-line structured array), or inline (word-level comparison). Includes stats on additions, deletions, and whether texts are identical. Runs entirely locally โ no external API calls.
unified (default), json, or inlinegit diff). Returns a string.