When it's ambiugous and true, count emoji as 1 characters wide. If false, emoji are counted as 2 character wide.
interface
StringWidthOptions
interface StringWidthOptions
- ambiguousIsNarrow?: boolean
- 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.