tldr/pages/common/tokei.md

536 B

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}}