macOS
brew install tokeilocal Homebrew formula metadata
sudo port install tokeiMacPorts ports tree · devel/tokei/Portfile · 来源: api.github.com
安装
brew install tokeilocal Homebrew formula metadata
sudo port install tokeiMacPorts ports tree · devel/tokei/Portfile · 来源: api.github.com
sudo apk add tokeiAlpine Linux edge package indexes · tokei · 来源: dl-cdn.alpinelinux.org
sudo dnf install tokeiFedora Rawhide package metadata · tokei · 来源: dl.fedoraproject.org
nix profile install nixpkgs#tokeinixpkgs package indexes · pkgs/by-name/to/tokei/package.nix · 来源: api.github.com
sudo pacman -S tokeiArch Linux sync databases · tokei · 来源: geo.mirror.pkgbuild.com
sudo zypper install tokeiopenSUSE Tumbleweed package metadata · tokei · 来源: download.opensuse.org
scoop install main/tokeiScoop official bucket manifest trees · bucket/tokei.json · 来源: api.github.com
winget install --id XAMPPRocky.Tokei -eWindows Package Manager source index · XAMPPRocky.Tokei · 来源: cdn.winget.microsoft.com
概览
Program that allows you to count code, quickly
历史
Tokei is a Rust code-statistics tool that counts files, total lines, code, comments, and blanks by language, with both CLI and library use cases.
The README positions Tokei as a fast and accurate counter for source trees, emphasizing multi-line and nested-comment handling, more than 150 supported languages, multiple machine-readable output formats, and use as a library.
Tokei's changelog follows Keep a Changelog and Semantic Versioning. Recent entries show continued maintenance through the 13.0.0 alpha series in 2024 and 2025, and a 14.0.0 release dated 2025-12-26 with additional language support such as C++20 modules, Ark TypeScript, and Koka.
The upstream README lists package-manager installs across Unix, macOS, and Windows: apk, pacman, Cargo, conda-forge, dnf, FreeBSD pkg, NetBSD pkgin, Nix, zypper, Void, Homebrew, MacPorts, winget, and Scoop. The input facts independently list Homebrew, Debian, Fedora/DNF, MacPorts, Nix, Arch, Scoop, winget, and openSUSE.
The README also advertises crates.io, GitHub, Homebrew, Chocolatey, and Repology badges, reflecting the project's package-manager-centered distribution culture.
Typical use is pointing tokei at one or more source directories to get a language-by-language table. It respects .gitignore, .ignore, and .tokeignore by default, can exclude paths, sort by statistics columns, print per-file counts, and emit JSON, YAML, or CBOR for downstream tools.
Because tokei can read prior output back in, it also supports workflows that snapshot code statistics and combine them with later runs.
Tokei is significant in the package-nerd niche because it is both a benchmarkable Rust CLI and a widely packaged developer utility. It is small enough to install casually, but broad enough to become a standard smoke-test tool for language detection, ignore-file behavior, terminal output, and package metadata across many ecosystems.
Its long package-manager list and machine-readable output make it useful for maintainers comparing source trees, release artifacts, vendored code, or language mix without bringing in a full analytics stack.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
tokei | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:tokei |
|---|---|
| 版本 | 14.0.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/XAMPPRocky/tokei |
| 仓库 | https://github.com/XAMPPRocky/tokei |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
tokei 12.1.2-6+b1
display statistics about your code
sudo apt install tokeitokei
nix profile install nixpkgs#tokeitokei 14.0.0-r0
A blazingly fast CLOC (Count Lines Of Code) program
https://github.com/XAMPPRocky/tokei
sudo apk add tokeitokei 14.0.0-6.fc45
Count your code, quickly
https://crates.io/crates/tokei
sudo dnf install tokeitokei 14.0.0-1
A blazingly fast CLOC (Count Lines Of Code) program
https://github.com/XAMPPRocky/tokei
sudo pacman -S tokeitokei 14.0.0+git0-1.3
Code statistics commandline tool
https://github.com/XAMPPRocky/tokei
sudo zypper install tokeitokei
sudo port install tokeimain/tokei
scoop install main/tokeiXAMPPRocky.Tokei
winget install --id XAMPPRocky.Tokei -e来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.