Get the visual width of the widest line in a string - the number of columns required to display it
MIT License
Strip leading whitespace from each line in a string
Detect whether the terminal supports Unicode
Determine the East Asian Width of a Unicode character
ANSI escape codes for manipulating the terminal
Normalize the newline characters in a string to `\n`
Split lines into an array of lines
Get the visual width of a string - the number of columns required to display it
Check if the character represented by a given Unicode code point is fullwidth
Truncate a string to a specific width in the terminal
Reliably get the terminal window size - cross-platform
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape c...
Reliably get the terminal window size
Trim newlines from the start and/or end of a string