Back to Husky

Index

docs/index.md

9.1.73.9 KB
Original Source

Ultra-fast modern native git hooks

Husky enhances your commits and more 🐶 woof!

Automatically lint your commit messages, code, and run tests upon committing or pushing.

Get started here.

Features

  • Just 2 kB (📦 gzipped) with no dependencies
  • Fastest due to being lightweight (runs in ~1ms)
  • Uses new Git feature (core.hooksPath)
  • Supports:

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
  • Can be globally disabled
  • User-friendly error messages

Sponsors

Support this project by becoming a sponsor here 💖

GitHub

<p align="center"> <a href="http://git-tower.com/?utm_source=husky&utm_medium=referral"> </a> </p> <p align="center"> <a href="https://serpapi.com/?utm_source=typicode"> </a> </p> <p align="center"> <a href="./sponsorkit/sponsors.svg"> </a> </p>

Open Collective

<a href="https://opencollective.com/husky/tiers/company/0/website"></a> <a href="https://opencollective.com/husky/tiers/company/1/website"></a> <a href="https://opencollective.com/husky/tiers/company/2/website"></a> <a href="https://opencollective.com/husky/tiers/company/3/website"></a> <a href="https://opencollective.com/husky/tiers/company/4/website"></a> <a href="https://opencollective.com/husky/tiers/company/5/website"></a>

Used by

Husky is used in over 1.5M projects on GitHub, including:

Articles