Options object used by Util.inspect
.
Fields
optionalshowHidden:Null<Bool>
optionalmaxArrayLength:Null<Int>
Specifies the maximum number of Array
, TypedArray
, WeakMap
and WeakSet
elements to include when
formatting.
Set to null
or Infinity
to show all elements.
Set to 0
or negative to show no elements.
Default: 100
.
optionalgetters:Null<EitherType<Bool, String>>
optionaldepth:Null<Int>
Specifies the number of times to recurse while formatting object
.
This is useful for inspecting large objects. To recurse up to the maximum call stack size pass Infinity
or
null
.
Default: 2
.
optionalcustomInspect:Null<Bool>
optionalcompact:Null<EitherType<Bool, Int>>
Setting this to false
causes each object key to be displayed on a new line.
It will also add new lines to text that is longer than breakLength
.
If set to a number, the most n
inner elements are united on a single line as long as all properties fit into
breakLength
.
Short array elements are also grouped together.
No text will be reduced below 16 characters, no matter the breakLength
size.
For more information, see the example below.
Default: 3
.
optionalbreakLength:Null<Float>
The length at which input values are split across multiple lines.
Set to Infinity
to format the input as a single line (in combination with compact
set to true
or any
number >= 1
).
Default: 80
.