Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/cli/tsc/dts/lib.deno.ns.d.ts>Deno.InspectOptions

A modern runtime for JavaScript and TypeScript.
Go to Latest
interface Deno.InspectOptions
import { type Deno } from "https://deno.land/x/deno@v1.30.0/cli/tsc/dts/lib.deno.ns.d.ts";
const { InspectOptions } = Deno;

Option which can be specified when performing Deno.inspect.

Properties

optional
colors: boolean = false

Stylize output with ANSI colors.

optional
compact: boolean = true

Try to fit more than one entry of a collection on the same line.

optional
depth: number = 4

Traversal depth for nested objects.

optional
iterableLimit: number = 100

The maximum number of iterable entries to print.

optional
showProxy: boolean = false

Show a Proxy's target and handler.

optional
sorted: boolean = false

Sort Object, Set and Map entries by key.

optional
trailingComma: boolean = false

Add a trailing comma for multiline collections.

optional
getters: boolean = false

Evaluate the result of calling getters.

optional
showHidden: boolean = false

Show an object's non-enumerable properties.

optional
strAbbreviateSize: number

The maximum length of a string before it is truncated with an ellipsis.