New strings-truncation gem
The strings-truncation truncates strings with fullwidth characters, for example those found in Chinese, Japanese or Korean language. It also preserves ANSI codes so it’s suitable for building terminal applications. The characters can be omitted from the start, middle, end or both ends. Enjoy!
Post a comment