Found 3 packages
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Get the visual width of a string - the number of columns required to display it
ANSI escape codes for manipulating the terminal