https://typicode.github.io/husky/
Git hooks made easy 🐶 woof!
https://typicode.github.io/husky/
commit git hooks pre-commit
Last synced: 11 days ago
JSON representation
Git hooks made easy 🐶 woof!
- Host: GitHub
- URL: https://typicode.github.io/husky/
- Owner: typicode
- License: mit
- Created: 2014-06-23T12:14:21.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T00:20:16.000Z (5 months ago)
- Last Synced: 2025-04-01T00:13:16.084Z (14 days ago)
- Topics: commit, git, hooks, pre-commit
- Language: JavaScript
- Homepage: https://typicode.github.io/husky
- Size: 4.23 MB
- Stars: 33,285
- Watchers: 157
- Forks: 1,046
- Open Issues: 81
-
Metadata Files:
- Readme: .github/README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-techstack - huksy
- awesome-list - husky
- awesome-npm - husky
- awesome - Huskey - A great tool for setting up git hooks, I use this in most projects and it is part of my default template. (:blue_heart: Typescript / :hammer_and_wrench: Tools)
- awesome - Huskey - A great tool for setting up git hooks, I use this in most projects and it is part of my default template. (:blue_heart: Typescript / :hammer_and_wrench: Tools)
README
# husky
[](https://www.npmjs.org/package/husky) [](https://github.com/typicode/husky/actions)
> Modern native Git hooks made easy
Husky improves your commits and more 🐶 _woof!_
> [!NOTE]
> 🌬️ Using React? I've just released a new and innovative styling solution for components [MistCSS](https://github.com/typicode/mistcss).## 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](https://git-scm.com/docs/githooks)And more:
- Branch-specific hooks
- Use POSIX shell to script advanced cases
- Adheres to Git's native hook organization
- Aligns with [npm](https://docs.npmjs.com/cli/v10/using-npm/scripts#best-practices) best practices using `prepare` script
- Opt-in/opt-out options
- User-friendly error messages## Changelog
[Check out the v9 changelog](https://github.com/typicode/husky/releases/tag/v9.0.1) 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](https://github.com/sponsors/typicode) 💖
### Special Sponsor
Get rewards for your open-source contributions
### GitHub
### Open Collective
![]()
![]()
![]()
![]()
![]()
![]()
[](https://www.sanity.io/)