InspectorAPI
API
Last updated:
API Reference
inspect(value, options?)
Inspect and format a value.
Options:
depth(number): Max depthcolors(boolean): Enable colorsshowHidden(boolean): Show hidden properties
Returns: Formatted string
Example:
inspect(obj, {
depth: 3,
colors: true,
showHidden: false,
});