2018-12-01 19:02:56 +01:00
|
|
|
# tokei
|
|
|
|
|
2024-02-25 07:46:24 -03:00
|
|
|
> Display statistics about code.
|
2019-06-03 02:06:36 +02:00
|
|
|
> More information: <https://github.com/XAMPPRocky/tokei>.
|
2018-12-01 19:02:56 +01:00
|
|
|
|
2024-02-25 07:46:24 -03:00
|
|
|
- Display a report for the code in a directory and all subdirectories:
|
2018-12-01 19:02:56 +01:00
|
|
|
|
2019-02-11 19:00:49 +01:00
|
|
|
`tokei {{path/to/directory}}`
|
2018-12-01 19:02:56 +01:00
|
|
|
|
2024-02-25 07:46:24 -03:00
|
|
|
- Display a report for a directory excluding `.min.js` files:
|
2018-12-01 19:02:56 +01:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`tokei {{path/to/directory}} {{[-e|--exclude]}} {{*.min.js}}`
|
2018-12-01 19:02:56 +01:00
|
|
|
|
2024-02-25 07:46:24 -03:00
|
|
|
- Display statistics for individual files in a directory:
|
2018-12-01 19:02:56 +01:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`tokei {{path/to/directory}} {{[-f|--files]}}`
|
2018-12-01 19:02:56 +01:00
|
|
|
|
2024-02-25 07:46:24 -03:00
|
|
|
- Display a report for all files of type Rust and Markdown:
|
2018-12-01 19:02:56 +01:00
|
|
|
|
2025-04-22 06:20:48 +03:00
|
|
|
`tokei {{path/to/directory}} {{[-t|--type]}} {{Rust}},{{Markdown}}`
|