Skip to content

npm

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
  • Extremely fast (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 ๐Ÿ’–

Special Sponsor โ€‹


Get rewards for your open-source contributions

GitHub โ€‹

Open Collective โ€‹

Used by โ€‹

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

Articles โ€‹