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
22.7K Stars 795 Forks MIT License 757 Commits 77 Opened issues

Description

Modern native Git hooks made easy 🐶 woof!

Services available

!
?

Need anything else?

Contributors list

# 340
JavaScr...
process...
Git
exec
650 commits
# 27,294
jenkins...
Groovy
microso...
c-sharp
3 commits
# 53,879
phantom...
regress...
HTML
specifi...
3 commits
# 8
React
TypeScr...
antd
ant-des...
2 commits
# 95,964
HTML
redux-f...
pre-com...
Git
2 commits
# 1,054
Babel
garbage...
type-sy...
Electro...
2 commits
# 21,935
danmaku
HTML
mac-app
vuepres...
1 commit
# 134,877
JavaScr...
Shell
hooks
pre-com...
1 commit
# 33,902
Markdow...
React
eslint-...
ecmascr...
1 commit
# 79,658
Swift
Objecti...
uicolle...
Xcode
1 commit
# 130,538
HTML
Shell
CSS
hooks
1 commit
# 48,591
TypeScr...
faceboo...
reactjs
React
1 commit
# 28,974
ESLint
HTML
ecmascr...
React
1 commit
# 45,638
JavaScr...
CSS
knockou...
React
1 commit
# 18,868
React N...
ecmascr...
exec
emotico...
1 commit
# 27,080
Markdow...
bittorr...
angular...
html-we...
1 commit
# 3,864
ecmascr...
sni
React
Vim
1 commit
# 5,217
TypeScr...
React
phantom...
prose
1 commit
# 122,817
TypeScr...
google-...
React
reactjs
1 commit
# 11,561
nextjs
Express
reasonm...
cpp17
1 commit

husky

Open Collective

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"

Make a commit:

$ git commit -m "Keep calm and commit"

For more use cases, see documentation.

Documentation

https://typicode.github.io/husky

Important Upgrading from v4 to v6 requires additional steps, please see the docs.

Articles

License

MIT

Companies

Become a sponsor and have your logo here and in the docs

The full list of Sponsors can be viewed in the docs, on Open Collective and on GitHub sponsors.

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.