husky
Modern native Git hooks made easy
Last updated 4 years ago by typicode .
MIT · Repository · Bugs · Original npm
$ 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.3                                ...           latest (3 years ago)

16 Versions

  • 8.0.3                                ...           3 years ago
  • 8.0.2                                ...           3 years ago
  • 8.0.1                                ...           3 years ago
  • 4.3.0                                ...           5 years ago
  • 7.0.4                                ...           4 years ago
  • 7.0.2                                ...           4 years ago
  • 7.0.1                                ...           4 years ago
  • 5.2.0                                ...           4 years ago
  • 5.1.3                                ...           4 years ago
  • 2.7.0                                ...           6 years ago
  • 0.13.4                                ...           8 years ago
  • 0.13.3                                ...           8 years ago
  • 0.14.3                                ...           8 years ago
  • 3.0.0                                ...           6 years ago
  • 1.3.1                                ...           7 years ago
  • 3.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (7)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org