Huge news!Announcing our $20M Series A led by Andreessen Horowitz.Learn more
Socket
Socket
Log inDemoInstall

husky

Package Overview
Dependencies
0
Maintainers
1
Versions
196
Issues
File Explorer

Advanced tools

Install Socket

Protect your apps from supply chain attacks

Install

husky

Modern native Git hooks made easy

    8.0.3latest
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
10,177,109
increased by0.22%

Weekly downloads

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

Last updated on 03 Jan 2023

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
SocketSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc