Skip to content

npm

Modern native git hooks made easy

Husky enhances your commits and more 🐶 woof!

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

Get started here.

Check out the v9 changelog to discover all the new and improved features! 🚀

Sponsors

Support this project by becoming a sponsor here 💖

GitHub

Open Collective

Features

  • Just 2 kB (📦 gzipped) with no dependencies
  • Uses new Git feature (core.hooksPath)
  • Adheres to Git's native hook organization
  • Aligns with npm best practices using prepare script
  • Clear user messages
  • Opt-in/opt-out options
  • Branch-specific hooks
  • Supports:

Used by

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

Articles