Skip to content

printAnsiToken

printAnsiToken(token): string

Defined in: packages/format-ansi/src/ansi-encoder.ts:13

Renders one token back to its character form.

The single implementation of the ANSI write grammar; this package’s named builders (cursorUp, hyperlink, styleText, …) are conveniences that produce the same sequences for the cases callers reach for by name.

AnsiToken

string