Skip to content
JS
Package

git-diff

Returns the git diff of two strings

v2.0.7, 26 Jun 2026ISCCommonJSTypes: None
$ npm install git-diff

Key numbers

As of 25 Sept 2026
Weekly downloads
440k
+131% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
5
Direct, from package.json
Last release
2 months ago
v2.0.7
GitHub stars
33
12 forks
Open issues / PRs
7 / 2
Contributors
-
Commits, last 52 weeks
4

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600k800kSept 2025Mar 2026Sept 2026High 618.8k (25 Aug 2026)Low 127.6k (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.

439,988 downloads last week, 2,066,073 in the last month. The 12-month change of +131% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
116 in total
Latest version
2.0.7, 26 Jun 20262 months ago
First published
24 Aug 2017
Last push to GitHub
25 Jun 202691 days before the snapshot
Repository archived
No
Open issues
7
Open pull requests
2
Commits, last 52 weeks
4
Dependents on npm
-

Major versions

  1. v2 first release 2.0.0, 4 Oct 2017
  2. v1 first release 1.0.0, 24 Aug 2017

Recent releases

VersionPublished
2.0.726 Jun 2026
2.0.69 Mar 2018
2.0.59 Mar 2018
2.0.415 Oct 2017
2.0.315 Oct 2017
2.0.29 Oct 2017
2.0.15 Oct 2017
2.0.04 Oct 2017
1.0.74 Oct 2017
1.0.626 Sept 2017
1.0.526 Sept 2017
1.0.424 Aug 2017
1.0.324 Aug 2017
1.0.224 Aug 2017
Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>= 4.8.0
Runtimes
-
Unpacked size (npm)
72 kB
Dependencies (5)
diffchalkshelljsloglevelshelljs.exec
npm install git-diff
  • jsDelivrhttps://cdn.jsdelivr.net/npm/git-diff@2.0.7/
  • unpkghttps://unpkg.com/git-diff@2.0.7/
  • esm.shhttps://esm.sh/git-diff@2.0.7
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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