macOS
brew install lefthooklocal Homebrew formula metadata
sudo port install lefthookMacPorts ports tree · devel/lefthook/Portfile · 来源: api.github.com
安装
brew install lefthooklocal Homebrew formula metadata
sudo port install lefthookMacPorts ports tree · devel/lefthook/Portfile · 来源: api.github.com
sudo apk add lefthookAlpine Linux edge package indexes · lefthook · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#lefthooknixpkgs package indexes · pkgs/by-name/le/lefthook/package.nix · 来源: api.github.com
scoop install main/lefthookScoop official bucket manifest trees · bucket/lefthook.json · 来源: api.github.com
winget install --id evilmartians.lefthook -eWindows Package Manager source index · evilmartians.lefthook · 来源: cdn.winget.microsoft.com
概览
Fast and powerful Git hooks manager for any type of projects
历史
Lefthook is Evil Martians' Git hooks manager, packaged as a fast Go binary for teams that want one hook configuration across JavaScript, Ruby, Python, Go, and mixed-language repositories.
Evil Martians introduced Lefthook publicly in 2019 as part of a developer-experience workflow around Git hooks, CI, and test automation. The project's official materials describe it as a Git hooks manager for Node.js, Ruby, Python, and many other project types, with speed from Go and parallel command execution.
By 2024 Evil Martians described Lefthook as having grown from a wrapper around custom Git hook scripts into a broader automation tool for local development routines. The docs centered the normal workflow around creating `lefthook.yml` and running `lefthook install`, which writes hook shims under `.git/hooks/`.
Evil Martians' 2019 launch material named Discourse, Logux, and OpenStax as adopters, which placed Lefthook in the practical Git-hook-manager niche rather than as a toy demo. Later official pages emphasized package-manager installation through project ecosystems and system package managers, including Homebrew, npm, RubyGems, winget, yum, apt, apk, and Scoop.
Package users usually install the `lefthook` binary, commit `lefthook.yml`, run `lefthook install`, and let Git invoke Lefthook on events such as pre-commit, pre-push, or commit-msg. A common package-nerd use is replacing language-specific hook wrappers with a single binary that can dispatch linters, formatters, tests, and custom scripts in parallel.
Lefthook matters in package-manager culture because it sits at the boundary between Git, local automation, and language ecosystems: it is distributed as a native CLI while still fitting naturally into npm, Ruby, Python, and Homebrew workflows. Its appeal is the small, boring promise package nerds like: one config file, one binary, fewer per-language hook stacks.
安全态势
没有找到 lefthook 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
lefthook.ymllefthook-local.yml可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
lefthook | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/evilmartians/lefthook
安装元数据
| 软件包键 | brew:lefthook |
|---|---|
| 版本 | 2.1.10 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/lefthook |
| 主页 | https://github.com/evilmartians/lefthook |
| 仓库 | https://github.com/evilmartians/lefthook |
| 上游文档 | https://lefthook.dev/ |
| 许可证 | MIT |
| 源码归档 | https://github.com/evilmartians/lefthook/archive/refs/tags/v2.1.10.tar.gz |
| 最后更新 | 2026-07-08T14:19:35Z |
| Pulse | updated |
| 构建依赖 | go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | lefthook |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
lefthook
nix profile install nixpkgs#lefthooklefthook 2.1.4-r2
Fast and powerful Git hooks manager
https://github.com/evilmartians/lefthook
sudo apk add lefthooklefthook-doc 2.1.4-r2
Fast and powerful Git hooks manager (documentation)
https://github.com/evilmartians/lefthook
sudo apk add lefthook-doclefthook
sudo port install lefthookmain/lefthook
scoop install main/lefthookevilmartians.lefthook
winget install --id evilmartians.lefthook -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.