tldr/pages/common/tokei.md

21 lines
528 B
Markdown
Raw Normal View History

2018-12-01 18:02:56 +00:00
# tokei
> A program that prints out statistics about code.
2019-05-14 17:21:46 +01:00
> Homepage: <https://github.com/XAMPPRocky/tokei>.
2018-12-01 18:02:56 +00:00
- Get a report on the code in a directory and all subdirectories:
2018-12-01 18:02:56 +00:00
`tokei {{path/to/directory}}`
2018-12-01 18:02:56 +00:00
- Get a report for a directory excluding `.min.js` files:
2018-12-01 18:02:56 +00:00
`tokei {{path/to/directory}} -e {{*.min.js}}`
2018-12-01 18:02:56 +00:00
- Print out statistics for individual files in a directory:
2018-12-01 18:02:56 +00:00
`tokei {{path/to/directory}} --files`
2018-12-01 18:02:56 +00:00
- Get a report for all files of type Rust and Markdown:
`tokei {{path/to/directory}} -t={{Rust}},{{Markdown}}`