tldr/pages/common/tokei.md

21 lines
536 B
Markdown
Raw Permalink Normal View History

2018-12-01 18:02:56 +00:00
# tokei
> A program that prints out statistics about code.
> More information: <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}}`