API Docs

The JS-facing surface of Node's util module, reachable as require('util').

Properties

This module has no properties.

Methods

util.inspect(value) -> string

Returns a string representation of a value, intended for debugging. Objects, arrays, `Map`/`Set`, functions, dates, and errors are formatted the way Node/browser consoles render them; a top-level string is returned as-is.
util.inspect(value) -> string
Name Type Description
value JSValue The value to format.
string
A formatted string.