tldr/pages/common/tokei.md

20 lines
477 B
Markdown
Raw Normal View History

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