Skip to content

print

print(value, options?, printer?): string

Formats any JavaScript value into a human-readable string.

unknown

The value to format and print.

PrintOptions

Optional configuration for depth, indentation, colors, and quotes.

Printer

A custom Printer implementation; falls back to defaultPrinter if not provided.

string

A formatted string representation of the input value.