Skip to main content
console.ConsoleConstructorOptions - node__console.d.ts - Node documentation
interface console.ConsoleConstructorOptions

Usage in Deno

```typescript import { console } from "node:node__console.d.ts"; ```

Properties

stdout: WritableStream
optional
stderr: WritableStream | undefined
optional
ignoreErrors: boolean | undefined
Ignore errors when writing to the underlying streams.
optional
colorMode:
boolean
| "auto"
| undefined
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.
optional
inspectOptions: InspectOptions | undefined
Specifies options that are passed along to [`util.inspect()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilinspectobject-options).
optional
groupIndentation: number | undefined
Set group indentation.