jest-diff
npmv30.5.1TypeScriptDisplay differences clearly so people can review changes confidently.
Safe to adopt
Yes — jest-diff scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 9 days ago. 24 releases in the last 2 years.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- AMaintenance: grade A, Excellent.
Last published 9 days ago. 24 releases in the last 2 years.
- BWeight: grade B, Good.
Pulls in 9 transitive packages, about 219 KB installed (at least — some of the tree is still being crawled).
- ASupply chain: grade A, Excellent.
No install scripts, 5 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
MIT — permissive, with no copyleft found in the dependency tree.
Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.
Install cost
What you actually take on by adding jest-diff to a project.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
Longest resolved dependency chain below this package.
Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.
Licenses in the dependency tree
Every license you inherit by installing jest-diff, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node ^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0
- Module format
- ESM + CommonJS
- TypeScript
- Types included
- Install scripts
- None
Quick start
A usage example from the jest-diff README.
const a = ['delete', 'common', 'changed from'];
const b = ['common', 'changed to', 'insert'];
const difference = diff(a, b);Dependencies
Declared by jest-diff v30.5.1. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (4)
Dev (1)
Used by
Popular packages that depend on jest-diff.
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
A CSS parser, transformer, and minifier written in Rust
Leaner CSS
Buffer manipulation utility
No description provided.
A set of utility functions for expect and related packages
Implements https://w3c.github.io/accname/
Relationship graph
Dependencies (left) and dependents (right) of jest-diff.
Frequently installed together
TypeScript definitions for node
A drop-in replacement for fs, making various improvements.
An AST-based pattern checker for JavaScript.
Stringify any JavaScript value.
Prettier is an opinionated code formatter
Delightful JavaScript Testing.
WebAssembly binary format parser
ECMAScript parser
Share target browsers between different front-end tools, like Autoprefixer, Stylelint and babel-env-preset
React is a JavaScript library for building user interfaces.
TypeScript definitions for estree
Lodash modular utilities.
Release history
24 releases in the last two years, typically about 6 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 30.5.1latest | 9 days ago | 79 KB | MIT |
| 30.5.0 | 12 days ago | 79 KB | MIT |
| 30.4.1 | 4 months ago | 79 KB | MIT |
| 30.4.0 | 4 months ago | 79 KB | MIT |
| 30.3.0 | 6 months ago | 79 KB | MIT |
| 30.2.0 | 11 months ago | 83 KB | MIT |
| 30.1.2 | 1 year ago | 83 KB | MIT |
| 30.1.1 | 1 year ago | 83 KB | MIT |
| 30.1.0 | 1 year ago | 83 KB | MIT |
| 30.0.5 | 1 year ago | 83 KB | MIT |
| 30.0.4 | 1 year ago | 83 KB | MIT |
| 30.0.3 | 1 year ago | 83 KB | MIT |
| 30.0.2 | 1 year ago | 78 KB | MIT |
| 30.0.1 | 1 year ago | 78 KB | MIT |
| 30.0.0 | 1 year ago | 78 KB | MIT |
Overview
jest-diff is an npm package that display differences clearly so people can review changes confidently. It has 7 known dependents in the graph. The latest version is 30.5.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need display differences clearly so people can review changes confidently and value a focused solution.
When not to use it
Consider an alternative if you need to or if a more actively-maintained option better fits your npm stack.
Pros
- Ships TypeScript type definitions.
- Clear open-source license (MIT).
Cons
- No significant drawbacks detected from available metadata.
Auto-generated from collected registry metadata. No external claims are inferred.
Frequently asked questions
Should I use jest-diff?
Yes — jest-diff scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 9 days ago. 24 releases in the last 2 years.
How do I install jest-diff?
Run `npm install jest-diff` to add jest-diff to your npm project.
How many dependencies does jest-diff have?
jest-diff declares 5 direct dependencies and pulls in 9 packages in total once its runtime tree is resolved totalling about 219 KB on disk.
What license is jest-diff released under?
jest-diff is distributed under the MIT license.
How popular is jest-diff?
npm does not publish download counts. Within PackageGraph's crawl, 7 known packages depend on jest-diff.
Is jest-diff still maintained?
The most recent release of jest-diff (v30.5.1) was published 9 days ago.
Does jest-diff run install scripts?
No. jest-diff does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.