Scripts2026年4月7日·1 分钟阅读

Lefthook — Fast Git Hooks Manager in Go

Blazing-fast Git hooks manager written in Go. Run linters, formatters, and tests on git commit/push in parallel. Zero-dependency single binary. Replaces Husky + lint-staged. 5,000+ stars.

介绍

Lefthook is a blazing-fast Git hooks manager written in Go with 5,000+ GitHub stars. Runs linters, formatters, and tests in parallel with only 5ms startup. A drop-in replacement for Husky + lint-staged. Best for teams needing fast, reliable pre-commit checks.


Quick Start

npm install lefthook --save-dev
npx lefthook install
# lefthook.yml
pre-commit:
  parallel: true
  commands:
    lint:
      glob: "*.{ts,tsx}"
      run: npx biome check {staged_files}

Overview

Lefthook is a blazing-fast Git hooks manager written in Go with 5,000+ GitHub stars. Runs linters, formatters, and tests in parallel with only 5ms startup. A drop-in replacement for Husky + lint-staged. Best for teams needing fast, reliable pre-commit checks.


Source & Thanks

Created by Evil Martians. Licensed under MIT.

lefthook — stars 5,000+

🙏

来源与感谢

Created by Evil Martians. Licensed under MIT.

lefthook — stars 5,000+

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产