(text: string)
| 10 | |
| 11 | /** Remove all ANSI escape sequences from a string. */ |
| 12 | export function stripAnsi(text: string): string { |
| 13 | return text.replace(ANSI_RE, ""); |
| 14 | } |
| 15 | |
| 16 | /** Returns true if the string contains any ANSI escape sequences. */ |
| 17 | export function hasAnsi(text: string): boolean { |
no outgoing calls
no test coverage detected