Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

husky

Package Overview
Dependencies
0
Maintainers
1
Versions
195
Issues
File Explorer

Advanced tools

husky

Modern native Git hooks made easy

    8.0.2latest

Version published
Maintainers
1
Weekly downloads
6,461,363
decreased by-19.57%

Weekly downloads

Changelog

Source

  • docs: remove deprecated npm set-script

Readme

Source

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 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

Documentation

https://typicode.github.io/husky

Keywords

FAQs

What is husky?

Modern native Git hooks made easy

Is husky popular?

The npm package husky receives a total of 5,377,899 weekly downloads. As such, husky popularity was classified as popular.

Is husky well maintained?

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.

Last updated on 08 Nov 2022

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.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc