class InspectOptions extends Object
Inspect Options
- Annotations
- @JSType()
- See also
https://nodejs.org/api/util.html#util_util_inspect_object_options
- Alphabetic
- By Inheritance
- InspectOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
InspectOptions(showHidden: UndefOr[Boolean] = false, depth: Int = 2, colors: Boolean = false, customInspect: Boolean = true, showProxy: Boolean = false, maxArrayLength: UndefOr[Int] = 100, breakLength: Int = 80, compact: UndefOr[|[Boolean, Int]] = 3, sorted: UndefOr[|[Boolean, Function2[String, String, Int]]] = js.undefined, getters: UndefOr[|[Boolean, String]] = false)
- showHidden
If true, the object's non-enumerable symbols and properties will be included in the formatted result. Defaults to false.
- depth
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.
- colors
If true, the output will be styled with ANSI color codes. Defaults to false. Colors are customizable, see Customizing util.inspect colors.
- customInspect
If false, then custom inspect(depth, opts) functions exported on the object being inspected will not be called. Defaults to true.
- showProxy
If true, then objects and functions that are Proxy objects will be introspected to show their target and handler objects. Defaults to false.
- maxArrayLength
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.
- breakLength
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.
- compact
For Node.js v9.9.0+
- sorted
For Node.js v10.12.0+
- getters
For Node.js v11.5.0+
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- var breakLength: Int
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- var colors: Boolean
- var compact: UndefOr[|[Boolean, Int]]
- var customInspect: Boolean
- var depth: Int
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- var getters: UndefOr[|[Boolean, String]]
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- var maxArrayLength: UndefOr[Int]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var showHidden: UndefOr[Boolean]
- var showProxy: Boolean
- var sorted: UndefOr[|[Boolean, Function2[String, String, Int]]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )