This is a standalone project, maintained as part of the
@thi.ng/umbrella monorepo and
anti-framework.
About
Customizable diff implementations for arrays (sequential) & objects (associative), with or without linear edit logs.
Status
STABLE - used in production
Search or submit any issues for this package
Installation
yarn add @thi.ng/diff
ES module import:
<script type="module" src="https://cdn.skypack.dev/@thi.ng/diff"></script>
Skypack documentation
For Node.js REPL:
const diff = await import("@thi.ng/diff");
Package sizes (brotli'd, pre-treeshake): ESM: 1.06 KB
Dependencies
API
Generated API docs
import { diffArray } from "@thi.ng/diff";
diffArray([1, 2, 3], [1, 2, 4], "full");
Authors
If this project contributes to an academic publication, please cite it as:
@misc{thing-diff,
title = "@thi.ng/diff",
author = "Karsten Schmidt",
note = "https://thi.ng/diff",
year = 2016
}
License
© 2016 - 2023 Karsten Schmidt // Apache License 2.0