Need help with husky?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

typicode
23.6K Stars 827 Forks MIT License 794 Commits 34 Opened issues

Description

Modern native Git hooks made easy 🐶 woof!

Services available

!
?

Need anything else?

Contributors list

husky

Open Collective Node.js CI

Modern native Git hooks made easy

Husky improves your commits and more 🐶 woof!

Install

npm install husky -D

Usage

Edit

package.json > prepare
script and run it once:
npm set-script prepare "husky install"
npm run prepare

Add a hook:

npx husky add .husky/pre-commit "npm test"
git add .husky/pre-commit

Make a commit:

git commit -m "Keep calm and commit"
# `npm test` will run every time you commit

For more use cases (project in sub-directory, custom directory, CI support, ...), see documentation.

Documentation

https://typicode.github.io/husky

Important Upgrading from v4 to v7 requires migrating previous config, please see the docs.

Articles

License

MIT

Sponsors

Companies

Does your company use husky? Ask your manager or marketing team if your company would be interested in supporting this project.

Individuals

Find husky helpful? Become a backer and show your appreciation with a monthly donation on Open Collective. You can also tip with a one-time donation.

GitHub sponsors can be viewed on my profile. All past and current Open Collective sponsors can be viewed on here.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.