Parse ANSI escape codes in a string, returning both the escape codes and the string components.
The string to parse.
The parsed ANSI escape codes and the string components.
0.1.3
parseAnsi("\u001b[31municorn\u001b[39m");//=> ["\u001b[31m", "unicorn", "\u001b[39m"] Copy
parseAnsi("\u001b[31municorn\u001b[39m");//=> ["\u001b[31m", "unicorn", "\u001b[39m"]
Parse ANSI escape codes in a string, returning both the escape codes and the string components.