2018-12-01 18:02:56 +00:00
|
|
|
# tokei
|
|
|
|
|
|
|
|
> A program that prints out statistics about code.
|
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Get a report on the code in a directory and all subdirectories:
|
2018-12-01 18:02:56 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`tokei {{path/to/directory}}`
|
2018-12-01 18:02:56 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Get a report for a directory excluding `.min.js` files:
|
2018-12-01 18:02:56 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`tokei {{path/to/directory}} -e {{*.min.js}}`
|
2018-12-01 18:02:56 +00:00
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
- Print out statistics for individual files in a directory:
|
2018-12-01 18:02:56 +00:00
|
|
|
|
2019-02-11 18:00:49 +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:
|
|
|
|
|
2019-02-11 18:00:49 +00:00
|
|
|
`tokei {{path/to/directory}} -t={{Rust}},{{Markdown}}`
|