husky README

The project's README from github.com/typicode/husky. As one markdown file: README.md.

husky

Node.js CI

Modern native Git hooks made easy

Husky improves your commits and more ๐Ÿถ woof!

[!NOTE] Using React? See MistCSS typed CSS components.

Features

And more:

Changelog

Check out the v9 changelog to discover all the new and improved features!

Documentation

https://typicode.github.io/husky

Important Upgrading from v4 to v9 requires migrating previous config, please see the docs.

Sponsors

Support this project by becoming a sponsor here ๐Ÿ’–

GitHub

Git Tower

SerpApi

Open Collective

image

husky (typicode/husky)

Searching Databaseโ€ฆ

35.4K ยทGitHub
What is this?Husky is a tool that makes it easy to set up and manage Git hooks, so scripts run automatically on Git events like commits or pushes.
Is this a library I import or a CLI tool I run?It is a small CLI/npm package installed as a dev dependency; you don't import an API, you just let it create and manage hook scripts for you.
How do I add it to my project?Install it as a dev dependency with npm (or yarn/pnpm) and run its init command, which sets up a .husky folder containing your hook scripts.
Do I need anything besides Node and Git?Husky itself has no runtime dependencies listed; it just requires Node.js 18 or newer and a Git repository to hook into.
Does it work the same on Windows as on Mac and Linux?As a Node.js CLI tool with no OS-specific code, husky runs the same way on Windows, macOS, and Linux wherever Node 18+ and Git are available.
What are Git hooks typically used for with husky?Common uses include running linters, tests, or formatters automatically before a commit or push, catching problems before they reach the repository.
Is husky actively maintained?The repo has active CI workflows for testing, npm publishing, and deployment, suggesting it's kept up to date.
Why would I use husky instead of writing my own .git/hooks scripts?Husky manages hook installation and versioning for you through package.json/config, so hooks are shareable across the team instead of living only in a local, untracked .git folder.
What are similar projects?commitlint, cz-cli, diff-so-fancy, gulp, git-cliff, lerna, openqodex, nx
Creator
typicode
Size
4.7 MB
Stars
35.4K
Age
12y
Commits ยท 90 Days