| What it is | Installs a git pre-commit hook that runs your npm scripts before each commit | Native Git hooks for npm projects, in 2 kB with no dependencies | A framework for managing and maintaining multi-language pre-commit hooks. | Fast and powerful Git hooks manager for any type of projects. |
| Features | - 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
| - 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
| - parallel execution
- staged/pushed file lists
- glob filters
- lefthook.yml
- single binary
- npm/gem/pip/go installs
|