Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/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.28.0/cli/dts/lib.deno.ns.d.ts";
const { InspectOptions } = Deno;

Option which can be specified when performing Deno.inspect.

Properties

optional
colors: boolean

Stylize output with ANSI colors. Defaults to false.

optional
compact: boolean

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

optional
depth: number

Traversal depth for nested objects. Defaults to 4.

optional
iterableLimit: number

The maximum number of iterable entries to print. Defaults to 100.

optional
showProxy: boolean

Show a Proxy's target and handler. Defaults to false.

optional
sorted: boolean

Sort Object, Set and Map entries by key. Defaults to false.

optional
trailingComma: boolean

Add a trailing comma for multiline collections. Defaults to false.

optional
getters: boolean
  • Evaluate the result of calling getters. Defaults to false.
optional
showHidden: boolean

Show an object's non-enumerable properties. Defaults to false.

optional
strAbbreviateSize: number

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