1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/tokei.md

21 lines
536 B
Markdown
Raw Normal View History

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