console.dir(obj[, options])
Uses util.inspect()
on obj
and prints the resulting string to stdout
. This function bypasses any custom inspect()
function defined on obj
. An optional options
object may be passed to alter certain aspects of the formatted string:
-
showHidden
- iftrue
then the object's non-enumerable and symbol properties will be shown too. Defaults tofalse
. -
depth
- tellsutil.inspect()
how many times to recurse while formatting the object. This is useful for inspecting large complicated objects. Defaults to2
. To make it recurse indefinitely, passnull
. -
colors
- iftrue
, then the output will be styled with ANSI color codes. Defaults tofalse
. Colors are customizable; see customizingutil.inspect()
colors.
Please login to continue.