Diff tuple of [operation, text].
The data structure representing a diff is an array of Diff tuples.
new
Diff(op: DiffOperation,text: string,)
readonly
length: 2
readonly
op: DiffOperation
Modern JS/TS and Unicode-friendly version of diff-match-patch.
Diff tuple of [operation, text].
The data structure representing a diff is an array of Diff tuples.
Diff(op: DiffOperation,text: string,)
length: 2
op: DiffOperation
Add Package
deno add jsr:@clearlylocal/diff-match-patch-unicode
Import symbol
import { Diff } from "@clearlylocal/diff-match-patch-unicode/Diff";
Import directly with a jsr specifier
import { Diff } from "jsr:@clearlylocal/diff-match-patch-unicode/Diff";
Add Package
pnpm i jsr:@clearlylocal/diff-match-patch-unicode
pnpm dlx jsr add @clearlylocal/diff-match-patch-unicode
Import symbol
import { Diff } from "@clearlylocal/diff-match-patch-unicode/Diff";
Add Package
yarn add jsr:@clearlylocal/diff-match-patch-unicode
yarn dlx jsr add @clearlylocal/diff-match-patch-unicode
Import symbol
import { Diff } from "@clearlylocal/diff-match-patch-unicode/Diff";
Add Package
vlt install jsr:@clearlylocal/diff-match-patch-unicode
Import symbol
import { Diff } from "@clearlylocal/diff-match-patch-unicode/Diff";
Add Package
npx jsr add @clearlylocal/diff-match-patch-unicode
Import symbol
import { Diff } from "@clearlylocal/diff-match-patch-unicode/Diff";
Add Package
bunx jsr add @clearlylocal/diff-match-patch-unicode
Import symbol
import { Diff } from "@clearlylocal/diff-match-patch-unicode/Diff";