Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivan-guerra/ccount
Count characters in a string (including Unicode)
https://github.com/ivan-guerra/ccount
char-counter unicode-characters
Last synced: 7 days ago
JSON representation
Count characters in a string (including Unicode)
- Host: GitHub
- URL: https://github.com/ivan-guerra/ccount
- Owner: ivan-guerra
- License: unlicense
- Created: 2025-01-25T17:09:42.000Z (12 days ago)
- Default Branch: master
- Last Pushed: 2025-01-25T17:15:24.000Z (12 days ago)
- Last Synced: 2025-01-25T18:19:27.764Z (12 days ago)
- Topics: char-counter, unicode-characters
- Language: Rust
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ccount
A character frequency counter command-line tool.
This module provides functionality to analyze text and count character
frequencies. It supports various options for sorting and filtering the results,
including:- Sorting by character or frequency count
- Displaying frequency as percentages
- Showing only top N most frequent characters
- Filtering characters by frequency thresholds
- Full Unicode support for non-ASCII text analysis## Example
```bash
$ echo "hello world" | ccount --sort-by count --show-top-n 2
l: 3
o: 2
```The tool can read input either from command line arguments or standard input,
making it flexible for various use cases including pipeline operations. Unicode
support means it can analyze text in any language or script system.