InspectOptionsStylized

sealed external interface InspectOptionsStylized : InspectOptions(source)

Properties

Link copied to clipboard
abstract var breakLength: Double?

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).

Link copied to clipboard
abstract var colors: Boolean?

If true, the output is styled with ANSI color codes. Colors are customizable.

Link copied to clipboard
abstract var compact: Any?

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. Note that no text will be reduced below 16 characters, no matter the breakLength size. For more information, see the example below.

Link copied to clipboard
abstract var customInspect: Boolean?

If false, [util.inspect.custom](depth, opts, inspect) functions are not invoked.

Link copied to clipboard
abstract var depth: Double?

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.

Link copied to clipboard
abstract var getters: Any?

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.

Link copied to clipboard
abstract var maxArrayLength: Double?

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.

Link copied to clipboard
abstract var maxStringLength: Double?

Specifies the maximum number of characters to include when formatting. Set to null or Infinity to show all elements. Set to 0 or negative to show no characters.

Link copied to clipboard
abstract var numericSeparator: Boolean?

If set to true, an underscore is used to separate every three digits in all bigints and numbers.

Link copied to clipboard
abstract var showHidden: Boolean?

If true, object's non-enumerable symbols and properties are included in the formatted result. WeakMap and WeakSet entries are also included as well as user defined prototype properties (excluding method properties).

Link copied to clipboard
abstract var showProxy: Boolean?

If true, Proxy inspection includes the target and handler objects.

Link copied to clipboard
abstract var sorted: Any?

If set to true or a function, all properties of an object, and Set and Map entries are sorted in the resulting string. If set to true the default sort is used. If set to a function, it is used as a compare function.

Functions

Link copied to clipboard
abstract fun stylize(text: String, styleType: Style): String