tokei
« Back to VersTracker
Description:
Program that allows you to count code, quickly
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  @XAMPPRocky  |  formulae.brew.sh
Category: Developer tools
Tags: rust cli code-metrics developer-tools loc
Install: brew install tokei
About:
Tokei is a fast, multi-language code analysis tool that counts lines of code across numerous programming languages. It provides detailed statistics including physical lines, code lines, and comments, helping developers understand project complexity and size. The tool is optimized for performance, allowing it to scan large codebases almost instantly.
Key Features:
  • Supports over 200 programming languages
  • Blazing fast performance using parallel processing
  • Multiple output formats (JSON, YAML, CBOR)
  • Respects .gitignore and .tokeignore files
Use Cases:
  • Auditing repository size and complexity before refactoring
  • Generating code metrics for project documentation or reports
  • Quickly comparing codebase sizes across different languages in a monorepo
Alternatives:
  • cloc – cloc is a Perl script that is widely used but significantly slower than Tokei's Rust-based implementation.
  • scc – scc is another fast counter that also detects duplicate code, whereas Tokei focuses strictly on line counting and speed.
Version History
Detected Version Rev Change Commit
Sep 13, 2025 4:53am 0 VERSION_BUMP 7b3de1a6
Oct 27, 2024 11:42pm 0 VERSION_BUMP 6f80389c