Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

git-hooks-js

Free#25 of 26 in Git Hooks Management Tools

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.

6.0/10Editor score
git-hooks-js6.0 Visit git-hooks-js

At a glance

  • Editor score
    6.0 / 10
  • Pricing
    Open source
  • Best for
    macOS npm projects using .githooks folders
  • Paid from
    Free
  • Hook stages
    All
  • Facts checked
    20 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

Plans Open sourceFree Free to use — no paid tier required for the core job.
See plans on github.com

git-hooks-js fact sheet

Free planNot verified
Paid fromFree
Hook stagesAll
Shared configurationYes
Monorepo supportNot verified
CI executionNot verified
Package manager integrationYes
Platform supportUnix
DeploymentDesktop
PlatformsmacOS
SupportCommunity
Built forSolo, Small business (editorial estimate)
Integrations1 integrations: npm
PricingOpen source
Websitegithub.com
Facts checked20 Oct 2026

git-hooks-js integrations

git-hooks-js lists 1 integrations on its own site.

  • npm

Alternatives to git-hooks-js

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

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — git-hooks-js 6.0/10

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