husky
Modern native Git hooks made easy
Husky improves your commits and more 🐶 woof!
[!NOTE] Using React? See MistCSS typed CSS components.
Features
- Just
2 kB(📦 gzipped) with no dependencies - Fastest due to being lightweight (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
preparescript - Opt-in/opt-out options
- User-friendly error messages
Changelog
Check out the v9 changelog to discover all the new and improved features!
Documentation
https://typicode.github.io/husky
Important Upgrading from v4 to v9 requires migrating previous config, please see the docs.
Sponsors
Support this project by becoming a sponsor here 💖
<p align="center"> <a href="http://git-tower.com/?utm_source=husky&utm_medium=referral"> <img height="100" style="height: 100px; width: auto; max-width: none;" alt="Git Tower" src="https://camo.githubusercontent.com/4b4d0ae4ec27fe8591b575c86fe21c562f34926893272dccc05fbf0447d38694/68747470733a2f2f6a736f6e706c616365686f6c6465722e74797069636f64652e636f6d2f746f7765722d69636f6e2d616e642d6c6f676f2d31343030783236302e706e67" /> </a> </p> <p align="center"> <a href="https://serpapi.com/?utm_source=typicode"> <img height="100" style="height: 100px; width: auto; max-width: none;" src="https://github.com/user-attachments/assets/52b3039d-1e4c-4c68-951c-93f0f1e73611" alt="SerpApi" /> </a> </p> <p align="center"> <a href="../docs/sponsorkit/sponsors.svg"> <img src='../docs/sponsorkit/sponsors.svg'/> </a> </p>