Optional
colorsOptional
dateOptions to use when formatting timestamps. Defaults to:
{
year: "numeric",
month: "2-digit",
day: "2-digit",
hour: "2-digit",
minute: "2-digit",
second: "2-digit",
fractionalSecondDigits: 3,
timeZoneName: "shortOffset",
}
If set to null
, the timestamp will be formatted in ISO 8601 format.
Optional
indentationThe indentation to use when required. Defaults to two spaces.
Optional
metadataOptions to use when inspecting metadata Defaults to { compact: true, breakLength: Infinity }
Note: The colors
option will be overridden by the colors
option of
this object.
Optional
printWhether to print metadata when available. Defaults to false.
Optional
themeThe theme to use for coloring the output.
Whether to use colors in the output. Defaults is 'true'
This also set the
colors
option inmetadataInspectOptions
.Note: If the output/error stream is not a TTY, colors will be disabled regardless of this setting.