Skip to main content
Console.dir - console - Node documentation
method Console.dir

Usage in Deno

import { type Console } from "node:console";
Console.dir(
obj: any,
options?: InspectOptions,
): void

Uses util.inspect() 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
Back to top