A fast CLI tool for extracting and analyzing word frequency statistics from files.
- Multiple file input support
- Recursive directory scanning
- Configurable sorting (none / asc / desc)
- Output formats: plain text and JSON
- Fast and lightweight
cargo build --releaseBinary will be in:
./target/release/wordlist-cliwordlist-cli [OPTIONS] <PATHS>...wordlist-cli file.txtwordlist-cli file1.txt file2.txt file3.txtwordlist-cli ./docs --recursive-o, --output <OUTPUT>
Output file path
--output-format <OUTPUT_FORMAT>
Output format (default: txt)
Possible values: txt, json
-r, --recursive
Scan directories recursively
--sort <SORT>
Sort order (default: desc)
Possible values: none, asc, desc
-h, --help
Print help
-V, --version
Print version
| Mode | Description |
|---|---|
| none | No ordering guarantee |
| asc | Lowest frequency → highest |
| desc | Highest frequency → lowest |
Tie-breaker: alphabetical order of the word.
word 42
example 15
rust 10
[
{ "word": "the", "frequency": 68068 },
{ "word": "to", "frequency": 41559 },
{ "word": "a", "frequency": 28997 },
]wordlist-cli text.txt --sort descwordlist-cli text.txt --output-format json -o resultTo generate result.json
wordlist-cli ./notes -r --sort ascMIT license