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

Usage in Deno

```typescript import { type console } from "node:node__console.d.ts"; ```
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.

Type

boolean
| "auto"
| undefined