diff
npmv9.0.0TypeScriptA JavaScript text diff implementation.
Overview
diff is an npm package that a JavaScript text diff implementation. The latest version is 9.0.0, released under the BSD-3-Clause license.
Who should use it
Teams working in the npm ecosystem who need a JavaScript text diff implementation and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (BSD-3-Clause).
Cons
- Large dependency tree (26 direct dependencies) increases install size and audit surface.
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of diff.
Dependencies
Dev (26)
Used by
Popular packages that depend on diff.
Compare items in two sequences to find a longest common subsequence
DevTools for Rolldown
TypeScript execution environment and REPL for node.js, with source map support
Simple XML to JavaScript object converter.
Alternatives to diff
Measure the difference between two strings using the Levenshtein distance algorithm
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
`Object.defineProperty`, but not IE 8's broken one.
A modern CSS parser and stringifier with TypeScript support
Converts Zod schemas to Json Schemas
WebAssembly binary format parser
Full CSS support for JSX without compromises
Compare items in two sequences to find a longest common subsequence
Determine whether an AST node is a reference
A module for reading, writing, and manipulating JSON files
Leaner CSS
Stringify your JSON at max speed
Frequently installed together
wasm module for swc
TypeScript definitions for node
The semantic version parser used by npm.
ECMAScript parser
TypeScript definitions for react
An evented streaming XML parser in JavaScript
Structured diagnostic code library
Vite DevTools Kit
Universal filesystem path utils
Promise based HTTP client for the browser and node.js
No description provided.
Lodash modular utilities.
Version history
| Version | Published | License |
|---|---|---|
| 9.0.0latest | 3 months ago | BSD-3-Clause |
| 8.0.4 | 3 months ago | BSD-3-Clause |
| 3.5.1 | 5 months ago | BSD-3-Clause |
| 4.0.4 | 6 months ago | BSD-3-Clause |
| 4.0.3 | 6 months ago | BSD-3-Clause |
| 5.2.2 | 6 months ago | BSD-3-Clause |
| 5.2.1 | 6 months ago | BSD-3-Clause |
| 8.0.3 | 6 months ago | BSD-3-Clause |
| 8.0.2 | 1 year ago | BSD-3-Clause |
| 8.0.1 | 1 year ago | BSD-3-Clause |
| 8.0.0 | 1 year ago | BSD-3-Clause |
| 8.0.0-beta | 1 year ago | BSD-3-Clause |
| 7.0.0 | 1 year ago | BSD-3-Clause |
| 6.0.0 | 1 year ago | BSD-3-Clause |
| 6.0.0-beta | 1 year ago | BSD-3-Clause |
| 5.2.0 | 2 years ago | BSD-3-Clause |
| 5.1.0 | 4 years ago | BSD-3-Clause |
| 5.0.0 | 5 years ago | BSD-3-Clause |
| 4.0.2 | 6 years ago | BSD-3-Clause |
| 4.0.1 | 7 years ago | BSD-3-Clause |
Maintainers
Frequently asked questions
How do I install diff?
Run `npm install diff` to add diff to your npm project.
What license is diff released under?
diff is distributed under the BSD-3-Clause license.
How popular is diff?
diff has approximately 0 downloads per week and 3 known dependent packages.