ColorConfig
Configuration for ANSI color and style mappings used by the Printer.
Each property maps to a ColorOrColorizer
, which can be a style string
or a Colorizer
function that wraps text in ANSI escape codes.
https://tenray.io/logpot/formatting#available-ansi-style-tokens
Extends
Section titled “Extends”Record
<string
,ColorOrColorizer
>
Indexable
Section titled “Indexable”[key
: string
]: ColorOrColorizer
Properties
Section titled “Properties”boolean
Section titled “boolean”boolean:
ColorOrColorizer
Color for booleans.
bracket
Section titled “bracket”bracket:
ColorOrColorizer
Color for bracket characters ([
, ]
, {
, }
).
circular
Section titled “circular”circular:
ColorOrColorizer
Color for circular reference indicators.
colon:
ColorOrColorizer
Color for colon separators.
comma:
ColorOrColorizer
Color for comma separators.
custom
Section titled “custom”custom:
ColorOrColorizer
Color for custom or unclassified text.
date:
ColorOrColorizer
Color for Date objects.
default
Section titled “default”default:
ColorOrColorizer
Default color for values not matched by other keys.
function
Section titled “function”function:
ColorOrColorizer
Color for function representations.
key:
ColorOrColorizer
Color for object keys.
null:
ColorOrColorizer
Color for null
values.
number
Section titled “number”number:
ColorOrColorizer
Color for numbers.
string
Section titled “string”string:
ColorOrColorizer
Color for strings.
symbol
Section titled “symbol”symbol:
ColorOrColorizer
Color for symbols.
undefined
Section titled “undefined”undefined:
ColorOrColorizer
Color for undefined
values.