Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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)

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.