(s: string)
| 22 | |
| 23 | /** Length of `s` after ANSI SGR codes are stripped. */ |
| 24 | export function visibleLength(s: string): number { |
| 25 | return stripAnsi(s).length; |
| 26 | } |
| 27 | |
| 28 | /** Like `String.prototype.padEnd` but counts visible chars only. */ |
| 29 | export function padEndVisible(s: string, target: number): string { |
no test coverage detected