Skip to main content
Deno.InspectOptions - Deno documentation
interface Deno.InspectOptions

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
breakLength: number = 80

The maximum length for an inspection to take up a single line.

optional
escapeSequences: boolean = true

Whether or not to escape sequences.

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.

Back to top