husky

Modern native Git hooks made easy

Stats

StarsIssuesVersionUpdatedCreatedSize
husky
26,924158.0.12 months ago8 years agoMinified + gzip package size for husky in KB

Readme

husky

Modern native Git hooks made easy

Husky improves your commits and more 🐶 woof!

Install

npm install husky --save-dev

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

Documentation

https://typicode.github.io/husky

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.