Install
diff
A JavaScript text diff implementation.
9.0.0Latest, 13 Apr 2026
843MDownloads, last month
0Advisories on the latest
2Advisories, all versions
BSD-3-ClauseLicence
9.2KStars
3.2/10OpenSSF Scorecard
Source · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| Low | jsdiff has a Denial of Service vulnerability in parsePatch and applyPatch CVE-2026-24001 | Fixed in 5.2.2, 4.0.4, 3.5.1 | 14 Jan 2026 |
| High | Regular Expression Denial of Service (ReDoS) GHSA-h6ch-v84p-w6p9 | Fixed in 3.5.0 | 13 Jun 2019 |
In the news
- An Android onboarding tutorial that configures the real app: no draft state, a skip that keeps decisions, and a recap built from diffs dev.to, 3 Dec 2026
- A website change monitor that doesn't cry wolf: diff, Slack and Postgres in Python dev.to, 3 Dec 2026
- Browser-Local PDF Visual Diff with PDF.js: Streaming Page-by-Page Diffs in ~7 MB RAM dev.to, 3 Dec 2026
- A Browser-Only Image Diff Heatmap With Canvas dev.to, 3 Dec 2026
- A Pixel Diff Caught a 1px Change and Missed a Recoloured Button dev.to, 2 Dec 2026
On Hacker News
- Difftastic, a structural diff tool that understands syntax 1188 points, 200 comments, 21 Mar 2024
- Difftastic: A diff that understands syntax 983 points, 219 comments, 29 Mar 2022
- Difftastic, the fantastic diff 698 points, 90 comments, 7 Sep 2022
- Figure out who's leaving the company: dump, diff, repeat 688 points, 378 comments, 9 Feb 2024
Sources: npm, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.