effect-io-ai

Package: effect
Module: Console

Console.dir

Displays an interactive list of the properties of the specified object, optionally using console-specific inspection options for debugging complex data structures.

Example (Inspecting an object)

import { Console, Effect } from "effect"

const program = Effect.gen(function*() {
  const obj = { name: "John", age: 30, nested: { city: "New York" } }
  yield* Console.dir(obj)
  yield* Console.dir(obj, { depth: 2, colors: true })
})

Signature

declare const dir: (item: any, options?: any) => Effect.Effect<void>

Source

Since v2.0.0