InspectOptions
[<Interface>]
type InspectOptions =
abstract member breakLength: float option with get, set
abstract member colors: bool option with get, set
abstract member compact: U2<float,bool> option with get, set
abstract member customInspect: bool option with get, set
abstract member depth: float option with get, set
abstract member getters: Getters option with get, set
abstract member maxArrayLength: float option with get, set
abstract member maxStringLength: float option with get, set
abstract member numericSeparator: bool option with get, set
abstract member showHidden: bool option with get, set
abstract member showProxy: bool option with get, set
abstract member sorted: U2<bool,Sorted> option with get, set
static member Create (?showHidden: bool, ?depth: float, ?colors: bool, ?customInspect: bool, ?showProxy: bool, ?maxArrayLength: float, ?maxStringLength: float, ?breakLength: float, ?compact: U2<float,bool>, ?sorted: U2<bool,Sorted>, ?getters: Getters, ?numericSeparator: bool) : InspectOptions| Assembly | Xantham.Fable.Node |
| Attributes | [<Interface>] |
Declared inside
Getters | |
Sorted |
Properties
abstract member breakLength: float option with get, set
abstract member breakLength: float option with get, setThe 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).
abstract member colors: bool option with get, set
abstract member colors: bool option with get, setIf true, the output is styled with ANSI color codes. Colors are customizable.
abstract member compact: U2<float,bool> option with get, set
abstract member compact: U2<float,bool> option with get, setSetting 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.
abstract member customInspect: bool option with get, set
abstract member customInspect: bool option with get, setIf false, [util.inspect.custom](depth, opts, inspect) functions are not invoked.
abstract member depth: float option with get, set
abstract member depth: float option with get, setSpecifies 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.
abstract member getters: Getters option with get, set
abstract member getters: Getters option with get, setIf 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.
abstract member maxArrayLength: float option with get, set
abstract member maxArrayLength: float option with get, setSpecifies 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.
abstract member maxStringLength: float option with get, set
abstract member maxStringLength: float option with get, setSpecifies 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.
abstract member numericSeparator: bool option with get, set
abstract member numericSeparator: bool option with get, setIf set to true, an underscore is used to separate every three digits in all bigints and numbers.
abstract member showProxy: bool option with get, set
abstract member showProxy: bool option with get, setIf true, Proxy inspection includes the target and handler objects.