git-hooks-js
git-hooks-js: A zero-dependency npm utility for automating project Git hooks on macOS. Ranked #25 of 26 in Git Hooks Management Tools by our editors (6.0/10); pricing: Open source; best for macOS npm projects using .githooks folders.
At a glance
- Editor score6.0 / 10
- PricingOpen source
- Best formacOS npm projects using .githooks folders
- Paid fromFree
- Hook stagesAll
- Facts checked20 Oct 2026
Where it wins
- Automates hook installation and removal through npm lifecycle scripts
- Supports commit, push, checkout, merge, receive and other Git events
- Checks Git ignore rules and has zero runtime dependencies
Where it doesn't
- Platform coverage is limited to macOS
- Automatic setup and removal depend on npm lifecycle scripts
- Scripts must be executable and organized in .githooks event subdirectories
Our verdict on git-hooks-js
git-hooks-js is a zero-dependency Node.js utility for managing and running project Git hooks. It is aimed at solo developers and small teams working on macOS npm projects that want hook scripts kept inside the repository. The tool stores executable scripts in .githooks subdirectories named for Git hook events, covering commit, push, checkout, merge, receive and other stages. Its open-source model and npm development-dependency packaging suit projects that prefer a lightweight, repository-based approach.
Setup centers on npm integration. An npm postinstall script automatically installs the hooks, while an npm preuninstall script removes them, reducing manual lifecycle work when dependencies change. During execution, git-hooks-js checks Git ignore rules, so hook behavior accounts for repository ignore settings. The structure is explicit: each script needs to be executable and placed under the event directory that matches the Git stage. For teams already using npm, this gives configuration sharing through the project itself without adding runtime dependencies.
The main fit constraint is platform coverage: the published platform target is macOS, so teams maintaining Windows or broader cross-platform workflows should evaluate whether this scope matches their environments. The workflow also assumes Node.js, npm lifecycle scripts and the .githooks directory convention rather than offering a general, package-manager-neutral setup. Community channels are the stated support route, making the project most suitable for technically comfortable maintainers who can manage repository hooks directly. Choose git-hooks-js when macOS, npm and script-based hook storage align; look elsewhere when you need wider platform coverage or a different integration model.
Your product? Our editors can test git-hooks-js in depth and publish a review, labelled as paid · from $99/mo →
git-hooks-js pricing
git-hooks-js fact sheet
| Free plan | Not verified |
|---|---|
| Paid from | Free |
| Hook stages | All |
| Shared configuration | Yes |
| Monorepo support | Not verified |
| CI execution | Not verified |
| Package manager integration | Yes |
| Platform support | Unix |
| Deployment | Desktop |
| Platforms | macOS |
| Support | Community |
| Built for | Solo, Small business (editorial estimate) |
| Integrations | 1 integrations: npm |
| Pricing | Open source |
| Website | github.com |
| Facts checked | 20 Oct 2026 |
git-hooks-js integrations
git-hooks-js lists 1 integrations on its own site.
- npm
Alternatives to git-hooks-js
- hkAn open-source, CI-ready hook manager with broad lifecycle and monorepo coverage.8.9
- pre-commitA free, cross-platform framework for standardizing hooks across languages, repositories, and CI.8.8
- HuskyA free, cross-platform Git-hook manager with coverage for every client-side hook.7.9
See all git-hooks-js alternatives →
Used git-hooks-js? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used git-hooks-js for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
git-hooks-js is listed in our Git Hooks Management Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/git-hooks-js/"><img src="https://www.itechguides.com/best/badge/git-hooks-js.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update