Skip to content
JS
Package

difflib

text diff library ported from Python's difflib module

v0.2.4, 22 Apr 2012No license fieldCommonJSTypes: None
$ npm install difflib

Key numbers

As of 25 Sept 2026
Weekly downloads
458.1k
+4% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
14 years ago
v0.2.4
GitHub stars
256
44 forks
Open issues / PRs
7 / 4
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 791.9k (18 Aug 2026)Low 272.9k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

458,085 downloads last week, 2,383,363 in the last month. The 12-month change of +4% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
08 in total
Latest version
0.2.4, 22 Apr 201214 years ago
First published
25 Mar 2012
Last push to GitHub
8 Nov 20221,416 days before the snapshot
Repository archived
No
Open issues
7
Open pull requests
4
Commits, last 52 weeks
0
Dependents on npm
-

Major versions

  1. v0 first release 0.1.0, 25 Mar 2012

Recent releases

VersionPublished
0.2.422 Apr 2012
0.2.322 Apr 2012
0.2.15 Apr 2012
0.2.028 Mar 2012
0.1.327 Mar 2012
0.1.226 Mar 2012
0.1.126 Mar 2012
0.1.025 Mar 2012
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
*
Runtimes
-
Unpacked size (npm)
-
Dependencies (1)
heap
npm install difflib
  • jsDelivrhttps://cdn.jsdelivr.net/npm/difflib@0.2.4/
  • unpkghttps://unpkg.com/difflib@0.2.4/
  • esm.shhttps://esm.sh/difflib@0.2.4
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): no category.