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}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.