Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/typicode/husky
Git hooks made easy 🐶 woof!
https://github.com/typicode/husky
commit git hooks pre-commit
Last synced: 6 days ago
JSON representation
Git hooks made easy 🐶 woof!
- Host: GitHub
- URL: https://github.com/typicode/husky
- Owner: typicode
- License: mit
- Created: 2014-06-23T12:14:21.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T00:20:16.000Z (about 2 months ago)
- Last Synced: 2025-01-04T10:38:53.353Z (8 days ago)
- Topics: commit, git, hooks, pre-commit
- Language: JavaScript
- Homepage: https://typicode.github.io/husky
- Size: 4.23 MB
- Stars: 32,866
- Watchers: 157
- Forks: 1,040
- Open Issues: 59
-
Metadata Files:
- Readme: .github/README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- stars - typicode/husky
- awesome - husky - 🐶 Git hooks made easy (JavaScript)
- awesome-web - husky - staged](https://github.com/okonet/lint-staged) \| [cz-cli](https://github.com/commitizen/cz-cli)| (工程化)
- awesome-nodejs-cn - husky - 创建 Git 钩子脚本 (包 / 其他)
- awesome-nodejs - husky - Modern native Git hooks made easy 🐶 woof! ![](https://img.shields.io/github/stars/typicode/husky.svg?style=social&label=Star) (Repository / Git)
- awesome-git-hooks - Husky - Manage git hooks with a nice user interface. (Tools / update)
- awesome-starred-test - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- awesome-nodejs - husky - 现代化的本地 Git 钩子使操作更加轻松! ![](https://img.shields.io/github/stars/typicode/husky.svg?style=social&label=Star) (GIT 仓库 / Git)
- awesome-repositories - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- drupal-js - husky
- awesome-github-star - husky
- stars - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- awesome-git-hooks - Husky - Git hooks made easy. (Tools)
- awesome-list - husky
- awesome-nodejs - husky - Create Git hook scripts. (Packages / Miscellaneous)
- awesome-git - husky - modern native Git hooks made easy. (Hook management / Comparing workflows)
- awesomeness - husky
- awesome-web3-tools-and-dapps - Husky for Git Hooks - Improve your git commits with a Git Hooks manager that allows you to run scripts before or after each commit. (dApps directory / Solidity Developer Tools)
- awesome-node - husky - Create Git hook scripts. (Packages / Miscellaneous)
- awesome-f2e-libs - **husky** - 添加 git hooks。 (工程 / redux 扩展)
- awesome-javascript - husky - Prevents bad git commit, git push and more. (QA Tools / Runner)
- awesome-fe - **husky** - 添加 git hooks。 (工程 / macros)
- Awesome - `husky` (`git` hooks made easy 🐶)
- awesome-fe-resources - husky
- angular-awesome - Husky 🐶
- awesome-projects - husky
- awesome-starred - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- awesome-starred - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- awesome - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- awesome - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- stars - husky
- stars - husky
- jimsghstars - typicode/husky - Git hooks made easy 🐶 woof! (JavaScript)
- awesome-nodejs-cn - husky - **star:32875** 创建Git钩子脚本。 ![star > 2000][Awesome] (包 / 杂项)
README
# husky
[![](https://img.shields.io/npm/dm/husky.svg?style=flat)](https://www.npmjs.org/package/husky) [![Node.js CI](https://github.com/typicode/husky/workflows/Node.js%20CI/badge.svg)](https://github.com/typicode/husky/actions)
> Modern native Git hooks made easy
Husky improves your commits and more 🐶 _woof!_
> [!NOTE]
> 🌬️ Using React? I've just released a new and innovative styling solution for components [MistCSS](https://github.com/typicode/mistcss).## Features
- Just `2 kB` (📦 _gzipped_) with no dependencies
- Fastest due to being lightweight (runs in `~1ms`)
- Uses new Git feature (`core.hooksPath`)
- Supports:
- macOS, Linux, Windows
- Git GUIs, Node version managers, custom hooks directory, nested projects, monorepos
- [All 13 client-side Git hooks](https://git-scm.com/docs/githooks)And more:
- Branch-specific hooks
- Use POSIX shell to script advanced cases
- Adheres to Git's native hook organization
- Aligns with [npm](https://docs.npmjs.com/cli/v10/using-npm/scripts#best-practices) best practices using `prepare` script
- Opt-in/opt-out options
- User-friendly error messages## Changelog
[Check out the v9 changelog](https://github.com/typicode/husky/releases/tag/v9.0.1) 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](https://github.com/sponsors/typicode) 💖
### Special Sponsor
Get rewards for your open-source contributions
### GitHub
### Open Collective
[![image](https://github.com/user-attachments/assets/b9c5a918-70fc-4615-ae7d-e7e5bc3c66e8)](https://www.sanity.io/)