Bun

interface

console.ConsoleConstructorOptions

interface ConsoleConstructorOptions

  • colorMode?: boolean | 'auto'

    Set color support for this Console instance. Setting to true enables coloring while inspecting values. Setting to false disables coloring while inspecting values. Setting to 'auto' makes color support depend on the value of the isTTY property and the value returned by getColorDepth() on the respective stream. This option can not be used, if inspectOptions.colors is set as well.

  • groupIndentation?: number

    Set group indentation.

  • ignoreErrors?: boolean

    Ignore errors when writing to the underlying streams.

  • inspectOptions?: InspectOptions | ReadonlyMap<WritableStream, InspectOptions>

    Specifies options that are passed along to util.inspect(). Can be an options object or, if different options for stdout and stderr are desired, a Map from stream objects to options.

  • stderr?: WritableStream
  • stdout: WritableStream