Modern native Git hooks made easy
Husky improves your commits and more ๐ถ woof!
๐ Hey! Using React, Vue or Astro? Check my new project MistCSS to write 50% less code.
- Just
2 kB
(๐ฆ gzipped) with no dependencies - Extremely fast (runs in
~1ms
) - Uses new Git feature (
core.hooksPath
) - Supports:
- macOS, Linux, Windows
- Git GUIs, Node version managers, custom hooks directory, nested projects, monorepos
- All 13 client-side Git hooks
And more:
- Branch-specific hooks
- Use POSIX shell to script advanced cases
- Adheres to Git's native hook organization
- Aligns with npm best practices using
prepare
script - Opt-in/opt-out options
- User-friendly error messages
Check out the v9 changelog to discover all the new and improved features!
https://typicode.github.io/husky
Important Upgrading from v4 to v9 requires migrating previous config, please see the docs.
Support this project by becoming a sponsor here ๐