A fast function for calculating where a string should be truncated, given an optional width limit and an ellipsis string.
This library provides a fast function to calculate where a string should be truncated based on a visual width limit and optional ellipsis, making it ideal for terminal output formatting. It's designed for developers working on CLI tools or terminal-based applications who need efficient string truncation without repeatedly processing the same string. The package offers configurable character widths and handles ANSI escape sequences, making it suitable for colored or styled terminal text.
How the donated funds are distributed
Kivach works on the Obyte network, and therefore you can track all donations.