Skip to content
JS
Package

pre-commit

Automatically install pre-commit hooks for your npm modules.

v2.0.0, 28 Apr 2026MITCommonJSTypes: None
$ npm install pre-commit

Key numbers

As of 25 Sept 2026
Weekly downloads
301.4k
-12% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
2
Direct, from package.json
Last release
4 months ago
v2.0.0
GitHub stars
1.9k
148 forks
Open issues / PRs
61 / 5
Contributors
-
Commits, last 52 weeks
3

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 553.4k (21 Oct 2025)Low 181.4k (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.

301,382 downloads last week, 1,453,706 in the last month. The 12-month change of -12% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
2.0.0, 28 Apr 20264 months ago
First published
-
Last push to GitHub
28 Apr 2026149 days before the snapshot
Repository archived
No
Open issues
61
Open pull requests
5
Commits, last 52 weeks
3
Dependents on npm
278

Major versions

-

Recent releases

-

Module format
CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
>=16.13.0
Runtimes
-
Unpacked size (npm)
35 kB
Dependencies (2)
whichcross-spawn
npm install pre-commit
  • jsDelivrhttps://cdn.jsdelivr.net/npm/pre-commit@2.0.0/
  • unpkghttps://unpkg.com/pre-commit@2.0.0/
  • esm.shhttps://esm.sh/pre-commit@2.0.0
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

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