Found 4 packages
ANSI escape codes for manipulating the terminal
Regular expression for matching ANSI escape codes
Get the visual width of a string - the number of columns required to display it
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.