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).
interface
util.InspectOptionsStylized
interface InspectOptionsStylized
- breakLength?: number
- compact?: number | boolean
Setting this to
falsecauses each object key to be displayed on a new line. It will also add new lines to text that is longer thanbreakLength. If set to a number, the mostninner elements are united on a single line as long as all properties fit intobreakLength. Short array elements are also grouped together. Note that no text will be reduced below 16 characters, no matter thebreakLengthsize. For more information, see the example below. - customInspect?: boolean
If
false,[util.inspect.custom](depth, opts, inspect)functions are not invoked. - depth?: null | number
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
Infinityornull. - getters?: boolean | 'get' | 'set'
If set to
true, getters are going to be inspected as well. If set to'get'only getters without setter are going to be inspected. If set to'set'only getters having a corresponding setter are going to be inspected. This might cause side effects depending on the getter function. - maxArrayLength?: null | number
Specifies the maximum number of
Array,TypedArray,WeakMap, andWeakSetelements to include when formatting. Set tonullorInfinityto show all elements. Set to0or negative to show no elements. - maxStringLength?: null | number
Specifies the maximum number of characters to include when formatting. Set to
nullorInfinityto show all elements. Set to0or negative to show no characters. - numericSeparator?: boolean
If set to
true, an underscore is used to separate every three digits in all bigints and numbers. - showHidden?: boolean
If
true, object's non-enumerable symbols and properties are included in the formatted result.WeakMapandWeakSetentries are also included as well as user defined prototype properties (excluding method properties). - sorted?: boolean | (a: string, b: string) => number
If set to
trueor a function, all properties of an object, andSetandMapentries are sorted in the resulting string. If set totruethe default sort is used. If set to a function, it is used as a compare function.