| What it is | A zero-dependency tool to manage git hooks from package.json | Native Git hooks for npm projects, in 2 kB with no dependencies | A framework for managing and maintaining multi-language pre-commit hooks. | Installs a git pre-commit hook that runs your npm scripts before each commit |
| Features | - zero dependencies
- git hooks configured in package.json
- small install size
| - all 13 client-side Git hooks
- 2 kB, no dependencies
- uses Git core.hooksPath
- installs through the npm prepare script
- branch-specific hooks
- monorepo and nested project support
- works with Git GUIs and Node version managers
| - .pre-commit-config.yaml
- isolated hook environments
- multi-language hooks
- hook repositories
- runs on staged files
- pre-commit.ci
| - installs a git pre-commit hook when added as a dev dependency
- runs npm test, or the scripts listed in package.json, before each commit
- backs up an existing pre-commit hook as pre-commit.old
|