interface
StringWidthOptions
interface StringWidthOptions
- ambiguousIsNarrow?: boolean
When it's ambiugous and
true, count emoji as 1 characters wide. Iffalse, emoji are counted as 2 character wide. - countAnsiEscapeCodes?: boolean
If
true, count ANSI escape codes as part of the string width. Iffalse, ANSI escape codes are ignored when calculating the string width.