-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
Changing default options for util.inspect #7566
Copy link
Copy link
Closed
Labels
consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.
Metadata
Metadata
Assignees
Labels
consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.
console.logand relatives useutil.inspectto stringify complex structures, which creates somewhat of a dilemma when you have an application making use of bareconsolefunctions but you'd like unrestricted nesting (depth: null) or more than 100 visible array elements (maxArrayLength: null) by default.To change the default, I could see
util.inspect.setup(opts)being made available. Anyone with me?