Skip to main content
Console.dir - node__console.d.ts - Node documentation
method Console.dir

Usage in Deno

```typescript import { type Console } from "node:node__console.d.ts"; ```
Console.dir(
obj: any,
options?: InspectOptions,
): void
Uses [`util.inspect()`](https://nodejs.org/docs/latest-v22.x/api/util.html#utilinspectobject-options) on `obj` and prints the resulting string to `stdout`. This function bypasses any custom `inspect()` function defined on `obj`.

Parameters

obj: any
optional
options: InspectOptions

Return Type

void