Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface InspectOptions

Hierarchy

  • InspectOptions

Index

Properties

Optional breakLength

breakLength: number

The length at which an object's keys are split across multiple lines. Set to Infinity to format an object as a single line. Defaults to 60 for legacy compatibility.

Optional colors

colors: boolean

If true, the output will be styled with ANSI color codes. Defaults to false. Colors are customizable, see "Customizing util.inspect colors".

Optional customInspect

customInspect: boolean

If false, then custom inspect(depth, opts) functions exported on the object being inspected will not be called. Defaults to true.

Optional depth

depth: number | null

Specifies the number of times to recurse while formatting the object. This is useful for inspecting large complicated objects. Defaults to 2. To make it recurse indefinitely pass null.

Optional maxArrayLength

maxArrayLength: number | null

Specifies the maximum number of array and TypedArray elements to include when formatting. Defaults to 100. Set to null to show all array elements. Set to 0 or negative to show no array elements.

Optional showHidden

showHidden: boolean

If true, the object's non-enumerable symbols and properties will be included in the formatted result. Defaults to false.

Optional showProxy

showProxy: boolean

If true, then objects and functions that are Proxy objects will be introspected to show their target and handler objects. Defaults to false.

Generated using TypeDoc