printable-characters
A little helper for handling strings containing zero width control characters, ANSI styling, whitespaces, newlines, 💩, etc.
string-width
Get the visual width of a string - the number of columns required to display it
string-length
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes