# typicode/husky

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/typicode-husky).**

34,784 stars · 1,079 forks · JavaScript · mit

## Links

- GitHub: https://github.com/typicode/husky
- Homepage: https://typicode.github.io/husky
- awesome-repositories: https://awesome-repositories.com/repository/typicode-husky.md

## Topics

`commit` `git` `hooks` `pre-commit`

## Description

Husky is a Git hook manager that automates the installation and execution of version control lifecycle events within a project repository. It functions by redirecting standard version control event triggers to a centralized configuration directory, allowing teams to standardize development workflows and enforce code quality without requiring manual setup on every machine.

The tool enables custom workflow automation by triggering shell scripts during operations such as committing or pushing code. It distinguishes itself by integrating directly into package manager lifecycles, ensuring that automated validation and formatting tasks are configured automatically during initial project setup. To maintain efficiency in diverse environments, it provides granular control over hook execution, including the ability to bypass automated checks globally or selectively through environment variables.

The project supports a broad range of automation requirements by allowing developers to define new steps through executable files and supporting the invocation of non-shell interpreters for complex logic. It also includes diagnostic utilities to verify path configurations and file naming conventions, ensuring reliable execution across distributed teams and continuous integration pipelines.

## Tags

### Development Tools & Productivity

- [Git Hook Managers](https://awesome-repositories.com/f/development-tools-productivity/git-hook-managers.md) — Automates the installation and execution of version control lifecycle events within a project repository.
- [Version Control Hook Managers](https://awesome-repositories.com/f/development-tools-productivity/version-control-hook-managers.md) — Redirects standard version control event triggers to a centralized configuration directory.
- [Git Hook Management](https://awesome-repositories.com/f/development-tools-productivity/git-hook-management.md) — Simplifies configuration and maintenance of version control triggers across distributed teams.
- [Automated Version Control Workflows](https://awesome-repositories.com/f/development-tools-productivity/automated-version-control-workflows.md) — Enforces code quality by triggering custom scripts automatically during Git operations.
- [Custom Git Workflow Automations](https://awesome-repositories.com/f/development-tools-productivity/custom-git-workflow-automations.md) — Executes shell scripts during version control events to perform linting or validation. ([source](https://typicode.github.io/husky/get-started.html))
- [Development Workflow Automators](https://awesome-repositories.com/f/development-tools-productivity/development-workflow-automators.md) — Triggers custom scripts during standard version control operations to enforce code quality.
- [Development Lifecycle Automators](https://awesome-repositories.com/f/development-tools-productivity/development-lifecycle-automators.md) — Standardizes team workflows by ensuring consistent validation and formatting tasks before code commits.
- [Git Hook Definitions](https://awesome-repositories.com/f/development-tools-productivity/git-hook-definitions.md) — Allows developers to add new automation steps through executable files in project directories. ([source](https://typicode.github.io/husky/how-to.html))
- [Git Hook Initialization Tools](https://awesome-repositories.com/f/development-tools-productivity/git-hook-initialization-tools.md) — Provides initialization utilities to set up automated version control workflows. ([source](https://typicode.github.io/husky/get-started.html))
- [Project Lifecycle Integrations](https://awesome-repositories.com/f/development-tools-productivity/project-lifecycle-integrations.md) — Automatically configures the version control environment during initial project setup or dependency installation.

### DevOps & Infrastructure

- [CI Pipeline Optimizers](https://awesome-repositories.com/f/devops-infrastructure/ci-pipeline-optimizers.md) — Ensures build pipelines remain fast by selectively disabling automated checks in server-side environments.
