
About Lefthook
Lefthook is a Git hooks manager. You describe your checks in a YAML file, and it installs them so they run at the right point in Git.
What it does
You create a lefthook.yml file and run the install command. Lefthook writes a small hook script into the Git hooks folder, and that script calls lefthook to run the jobs you defined. Jobs can run in parallel, match only certain file types, and pass staged files to a linter. A file that a linter fixed can be staged again automatically.
Key features
- Configuration in one YAML file
- Parallel job execution
- Jobs run only for matching file types
- Passes staged files to commands
- Installs with npm, Homebrew, winget, apt and more
Who it's for
Lefthook suits teams that run several linters or formatters and want them to finish quickly. It fits JavaScript projects and projects in other languages, since each hook can call any command.
Pricing and good to know
Lefthook is MIT licensed and free to use. Hooks run on the developer's machine, so keeping them quick matters for everyone on the team. The site says the tool is built by Evil Martians, a design and engineering consultancy.
Highlights
- Reads hook jobs from one YAML file
- Runs jobs in parallel
- Runs jobs only for matching file types
- Restages files that a linter fixed












