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