husky
Modern native Git hooks made easy
Last updated 5 months ago .
· Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install husky 
SYNC missed versions from official npm registry.

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

Current Tags

  • 8.0.1                                ...           latest (5 months ago)

194 Versions

  • 0.4.0                                ...           8 years ago
  • 0.4.1                                ...           8 years ago
  • 0.4.2                                ...           8 years ago
  • 0.4.3                                ...           8 years ago
  • 0.5.0                                ...           8 years ago
  • 0.5.1                                ...           8 years ago
  • 0.5.2                                ...           8 years ago
  • 0.5.3                                ...           8 years ago
  • 0.5.4                                ...           8 years ago
  • 0.6.0                                ...           8 years ago
  • 0.6.1                                ...           8 years ago
  • 0.6.2                                ...           8 years ago
  • 0.7.0                                ...           8 years ago
  • 0.8.0                                ...           7 years ago
  • 0.8.1                                ...           7 years ago
  • 0.9.0                                ...           7 years ago
  • 0.9.1                                ...           7 years ago
  • 0.9.2                                ...           7 years ago
  • 0.9.3                                ...           7 years ago
  • 0.10.0                                ...           7 years ago
  • 0.10.1                                ...           7 years ago
  • 0.10.2                                ...           7 years ago
  • 0.11.0                                ...           7 years ago
  • 0.11.1                                ...           7 years ago
  • 0.11.2                                ...           7 years ago
  • 0.11.3                                ...           7 years ago
  • 0.11.4                                ...           7 years ago
  • 0.11.5                                ...           6 years ago
  • 0.11.6                                ...           6 years ago
  • 0.11.7                                ...           6 years ago
  • 0.11.8                                ...           6 years ago
  • 0.11.9                                ...           6 years ago
  • 0.12.0-0                                ...           6 years ago
  • 0.12.0-1                                ...           6 years ago
  • 0.12.0-2                                ...           6 years ago
  • 0.12.0                                ...           6 years ago
  • 0.13.0-0                                ...           6 years ago
  • 0.13.0-1                                ...           6 years ago
  • 0.13.0                                ...           6 years ago
  • 0.13.1                                ...           6 years ago
  • 0.13.2                                ...           6 years ago
  • 0.13.3-0                                ...           6 years ago
  • 0.13.3                                ...           6 years ago
  • 0.13.4                                ...           5 years ago
  • 0.14.0-0                                ...           5 years ago
  • 0.14.0-1                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.14.1-0                                ...           5 years ago
  • 0.14.1-1                                ...           5 years ago
  • 0.14.1-2                                ...           5 years ago
  • 0.14.1                                ...           5 years ago
  • 0.14.2                                ...           5 years ago
  • 0.14.3                                ...           5 years ago
  • 0.15.0-beta.0                                ...           5 years ago
  • 0.15.0-beta.1                                ...           5 years ago
  • 0.15.0-beta.2                                ...           5 years ago
  • 0.15.0-beta.3                                ...           5 years ago
  • 0.15.0-beta.4                                ...           5 years ago
  • 0.15.0-beta.5                                ...           5 years ago
  • 0.15.0-beta.6                                ...           5 years ago
  • 0.15.0-beta.7                                ...           5 years ago
  • 0.15.0-beta.8                                ...           5 years ago
  • 0.15.0-beta.9                                ...           5 years ago
  • 0.15.0-beta.10                                ...           5 years ago
  • 0.15.0-beta.11                                ...           5 years ago
  • 0.15.0-beta.12                                ...           5 years ago
  • 0.15.0-beta.13                                ...           5 years ago
  • 0.15.0-beta.14                                ...           5 years ago
  • 0.15.0-beta.15                                ...           5 years ago
  • 0.15.0-beta.16                                ...           5 years ago
  • 0.15.0-rc.1                                ...           5 years ago
  • 0.15.0-rc.2                                ...           5 years ago
  • 0.15.0-rc.3                                ...           5 years ago
  • 0.15.0-rc.4                                ...           5 years ago
  • 0.15.0-rc.5                                ...           5 years ago
  • 0.15.0-rc.6                                ...           5 years ago
  • 0.15.0-rc.7                                ...           5 years ago
  • 0.15.0-rc.8                                ...           5 years ago
  • 0.15.0-rc.9                                ...           5 years ago
  • 0.15.0-rc.10                                ...           5 years ago
  • 0.15.0-rc.11                                ...           5 years ago
  • 0.15.0-rc.12                                ...           5 years ago
  • 0.15.0-rc.13                                ...           5 years ago
  • 1.0.0-rc.1                                ...           4 years ago
  • 1.0.0-rc.2                                ...           4 years ago
  • 1.0.0-rc.3                                ...           4 years ago
  • 1.0.0-rc.4                                ...           4 years ago
  • 1.0.0-rc.5                                ...           4 years ago
  • 1.0.0-rc.6                                ...           4 years ago
  • 1.0.0-rc.7                                ...           4 years ago
  • 1.0.0-rc.8                                ...           4 years ago
  • 1.0.0-rc.9                                ...           4 years ago
  • 1.0.0-rc.10                                ...           4 years ago
  • 1.0.0-rc.11                                ...           4 years ago
  • 1.0.0-rc.12                                ...           4 years ago
  • 1.0.0-rc.13                                ...           4 years ago
  • 1.0.0-rc.14                                ...           4 years ago
  • 1.0.0-rc.15                                ...           4 years ago
  • 1.0.0                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.1.1                                ...           4 years ago
  • 1.1.2                                ...           4 years ago
  • 1.1.3                                ...           4 years ago
  • 1.1.4                                ...           4 years ago
  • 1.2.0                                ...           4 years ago
  • 1.2.1                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
  • 1.3.1                                ...           4 years ago
  • 2.0.0                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 2.3.0                                ...           3 years ago
  • 2.4.0                                ...           3 years ago
  • 2.4.1                                ...           3 years ago
  • 2.5.0                                ...           3 years ago
  • 2.6.0                                ...           3 years ago
  • 2.7.0                                ...           3 years ago
  • 3.0.0-0                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.2                                ...           3 years ago
  • 3.0.3                                ...           3 years ago
  • 4.0.0-beta.0                                ...           3 years ago
  • 4.0.0-beta.1                                ...           3 years ago
  • 3.0.4                                ...           3 years ago
  • 3.0.5                                ...           3 years ago
  • 3.0.6                                ...           3 years ago
  • 4.0.0-beta.2                                ...           3 years ago
  • 3.0.7                                ...           3 years ago
  • 3.0.8                                ...           3 years ago
  • 4.0.0-beta.3                                ...           3 years ago
  • 3.0.9                                ...           3 years ago
  • 4.0.0-beta.4                                ...           3 years ago
  • 4.0.0-beta.5                                ...           3 years ago
  • 3.1.0                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.2                                ...           3 years ago
  • 4.0.3                                ...           3 years ago
  • 4.0.4                                ...           3 years ago
  • 4.0.5                                ...           3 years ago
  • 4.0.6                                ...           3 years ago
  • 4.0.7                                ...           3 years ago
  • 4.0.8                                ...           3 years ago
  • 4.0.9                                ...           3 years ago
  • 4.0.10                                ...           3 years ago
  • 4.1.0                                ...           3 years ago
  • 4.2.0                                ...           3 years ago
  • 4.2.1                                ...           3 years ago
  • 4.2.2                                ...           3 years ago
  • 4.2.3                                ...           3 years ago
  • 4.2.4                                ...           2 years ago
  • 4.2.5                                ...           2 years ago
  • 4.3.0                                ...           2 years ago
  • 5.0.0-alpha.0                                ...           2 years ago
  • 5.0.0-alpha.1                                ...           2 years ago
  • 5.0.0-alpha.2                                ...           2 years ago
  • 5.0.0-alpha.3                                ...           2 years ago
  • 5.0.0-alpha.4                                ...           2 years ago
  • 5.0.0-alpha.5                                ...           2 years ago
  • 5.0.0-alpha.6                                ...           2 years ago
  • 5.0.0-beta.0                                ...           2 years ago
  • 5.0.0                                ...           2 years ago
  • 5.0.1                                ...           2 years ago
  • 5.0.2                                ...           2 years ago
  • 5.0.3                                ...           2 years ago
  • 5.0.4                                ...           2 years ago
  • 4.3.1                                ...           2 years ago
  • 4.3.2                                ...           2 years ago
  • 4.3.3                                ...           2 years ago
  • 4.3.4                                ...           2 years ago
  • 4.3.5                                ...           2 years ago
  • 5.0.5                                ...           2 years ago
  • 5.0.6                                ...           2 years ago
  • 4.3.6                                ...           2 years ago
  • 4.3.7                                ...           2 years ago
  • 4.3.8                                ...           2 years ago
  • 5.0.7                                ...           2 years ago
  • 5.0.8                                ...           2 years ago
  • 5.0.9                                ...           2 years ago
  • 5.1.0                                ...           2 years ago
  • 5.1.1                                ...           2 years ago
  • 5.1.2                                ...           2 years ago
  • 5.1.3                                ...           2 years ago
  • 5.2.0                                ...           2 years ago
  • 6.0.0                                ...           a year ago
  • 7.0.0                                ...           a year ago
  • 7.0.1                                ...           a year ago
  • 7.0.2                                ...           a year ago
  • 7.0.3                                ...           a year ago
  • 7.0.4                                ...           a year ago
  • 8.0.0                                ...           5 months ago
  • 8.0.1                                ...           5 months ago
Maintainers (1)
Dependencies (0)
None
Dev Dependencies (7)

Copyright © npmmirror.com | 浙ICP备15033595号-63 |