Skip to main content
Home

Built and signed on GitHub Actions

Modern JS/TS and Unicode-friendly version of diff-match-patch.

This package works with Node.js, Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year ago (0.1.1)
c
Diff

Diff tuple of [operation, text].

c
Differ

A class for performing diffs. Wraps the DiffMatchPatch class from the original library with more ergonomic and Unicode-friendly methods.

T
DiffLike

A Diff or a tuple of [operation, text] (loosely typed for convenience as an input to makeDiff).

T
DiffMatchPatchConfig

Instance-level configuration options for the Differ class to pass to the underlying DiffMatchPatch instance.

T
v
DiffOperation
No documentation available
T
DiffOptions

Options for methods of the Differ class.

f
makeDiff

Converts a DiffLike to a Diff.

f
makeDiffs

Converts an array of DiffLikes to an array of Diffs.

v
segmenters

A collection of commonly-used segmenters, suitable for use as the segmenter option in the Differ class.

c
Diff

Diff tuple of [operation, text].

T
v
DiffOperation
No documentation available
c
Differ

A class for performing diffs. Wraps the DiffMatchPatch class from the original library with more ergonomic and Unicode-friendly methods.

T
DiffMatchPatchConfig

Instance-level configuration options for the Differ class to pass to the underlying DiffMatchPatch instance.

T
DiffOptions

Options for methods of the Differ class.

v
segmenters

A collection of commonly-used segmenters, suitable for use as the segmenter option in the Differ class.

T
DiffLike

A Diff or a tuple of [operation, text] (loosely typed for convenience as an input to makeDiff).

f
makeDiff

Converts a DiffLike to a Diff.

f
makeDiffs

Converts an array of DiffLikes to an array of Diffs.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.