Skip to content

Commit 62505f4

Browse files
committed
feat: add util.inspect with full options support
Implements util.inspect() function with the following features: - depth: control recursion depth for nested objects (supports null for infinite) - colors: ANSI color output support - showHidden: show non-enumerable properties - customInspect: call Symbol.for('nodejs.util.inspect.custom') methods - maxArrayLength: limit array/set/map elements displayed - maxStringLength: truncate long strings - sorted: sort object keys (boolean or custom comparator function) - breakLength: line length at which to break to multiple lines - compact: control inline vs multiline formatting (number or false) Also exports: - util.inspect.custom symbol (nodejs.util.inspect.custom) - util.inspect.defaultOptions object Fixes #1257
1 parent 59607c1 commit 62505f4

File tree

5 files changed

+831
-36
lines changed

5 files changed

+831
-36
lines changed

0 commit comments

Comments
 (0)