BASE

Husky

Husky

Build / code quality tool · Free

Connects project Git hooks, allowing required local checks before commits and pushes without manually configuring every clone.

Also known as: typicode/husky; husky; github-hooks-manager

Resource illustration: Husky

Open resource ↗

What you can use for free

Code and local use under MIT.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Connect consistent project Git hooks
  • Connect a hook to a project script and test a successful/failing commit

Example workflow

A possible workflow; this is not a report of hands-on testing.

Connect consistent project Git hooks.

Before you start

  • A repository, package manifests, and configuration.
  • A compatible runtime and the target build command.

Steps

  1. Choose an existing check for the required Git event.
  2. Connect a hook to a project script and test a successful/failing commit.
  3. Add the workflow to scripts or CI with a clear report.

Check your result

  • A clean copy of the project reproduces the result.
  • Errors produce a nonzero exit code and clear diagnostics.

Choosing Husky

Connect consistent project Git hooks

Choose this when

  • Connect consistent project Git hooks
  • Connect a hook to a project script and test a successful/failing commit

Requirements

  • A Git repository and commands available through the hook's PATH; manual installation uses a prepare script and a one-time husky run.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: MIT for the code; dependencies have separate licenses.
  • Hooks can be skipped through --no-verify or HUSKY=0, so they do not guarantee that checks are unavoidable. If devDependencies are not installed, prepare:husky may fail.

Frequently asked questions

What can you use for free in Husky?

Code and local use under MIT.

What additional costs might arise with Husky?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Husky?

MIT for the code; dependencies have separate licenses.

How do you get started with Husky?

Choose an existing check for the required Git event. Connect a hook to a project script and test a successful/failing commit. Add the workflow to scripts or CI with a clear report.

Why do Git hooks work in the terminal but not in a GUI?

A GUI may not load the Node version manager or obtain the required PATH. Husky reads ~/.config/husky/init.sh before a hook: configure the version manager there. A hook is a .husky/pre-commit file containing POSIX shell commands, which can run a separate Node script.

License

MIT for the code; dependencies have separate licenses.

MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.

License terms

Technologies and topics

  • Husky
  • build
  • Development

Sources

Other resources