tokei

A program that prints out statistics about code. More information: <https://github.com/XAMPPRocky/tokei>.

Install

All systems
curl cmd.cat/tokei.sh
Arch Arch Linux
pacman -S tokei
Fedora
dnf install tokei
OS X
brew install tokei

A program that prints out statistics about code. More information: <https://github.com/XAMPPRocky/tokei>.

  • Get a report on the code in a directory and all subdirectories:
    tokei path/to/directory
  • Get a report for a directory excluding `.min.js` files:
    tokei path/to/directory -e *.min.js
  • Print out statistics for individual files in a directory:
    tokei path/to/directory --files
  • Get a report for all files of type Rust and Markdown:
    tokei path/to/directory -t=Rust,Markdown

© tl;dr; authors and contributors