Modern native git hooks made easy
Husky improves your commits and more 🐶 woof!
You can use it to lint your commit messages, run tests, lint code, etc... when you commit or push. Husky supports all Git hooks.
Click here to get started.
Features
- Lightweight with zero dependencies (
6 kB
) - Powered by modern new Git feature (
core.hooksPath
) - Follows npm and Yarn best practices regarding
autoinstall
- User-friendly messages
- Opt-in/opt-out
- Supports
- macOS, Linux and Windows
- Git GUIs
- Custom hooks directory
- Nested projects
- Monorepos
Used by
Husky is used by these awesome projects:
- webpack/webpack
- angular/angular
- angular/angular-cli
- angular/components
- vercel/hyper
- blitz-js/blitz
- facebook/docusaurus
- typescript-eslint/typescript-eslint
- 11ty/eleventy
- stylelint/stylelint
- rollup/rollup
- tauri-apps/tauri
- NativeScript/NativeScript
- formatjs/formatjs
- react-bootstrap/react-bootstrap
- react-dnd/react-dnd
- react-grid-layout/react-grid-layout
- snabbdom/snabbdom
- logaretm/vee-validate
- zenorocha/clipboard.js
- NodeBB/NodeBB
- ant-design/ant-design
- And more than 1.1M projects
Articles
Sponsors
Does your company use husky? Ask your manager or marketing team if your company would be interested in supporting this project.
Find husky helpful? Become a backer and show your appreciation with a monthly donation on Open Collective. You can also tip with a one-time donation.
GitHub sponsors can be viewed on my profile. All past and current Open Collective sponsors can be viewed on here.