Skip to main content

@libs/diff@3.0.2
Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
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 Score100%
Downloads147/wk
Published4 months ago (3.0.2)

➕ Diff (patience algorithm)

Functions

f
diff(
a: string,
b: string,
unnamed 2?
): string

Compute unified patch from diff between two strings.

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.

Add Package

deno add jsr:@libs/diff

Import symbol

import * as mod from "@libs/diff";
or

Import directly with a jsr specifier

import * as mod from "jsr:@libs/diff";