Skip to main content

Interface: ColorToken

A token produced by a colorize function for syntax highlighting.

Properties

style?

optional style?: string

ANSI escape sequence to apply as style (e.g. '\x1b[31m').


text

text: string

The text content of the token.