husky
Advanced tools
Weekly downloads
Readme
Modern native Git hooks made easy
Husky improves your commits and more 🐶 woof!
npm install husky --save-dev
Edit package.json > prepare
script and run it once:
npm pkg set scripts.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
FAQs
Modern native Git hooks made easy
The npm package husky receives a total of 9,777,284 weekly downloads. As such, husky popularity was classified as popular.
We found that husky demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.