Skip to content

Set inspect.defaultOptions using environment variables #12693

@deadbeef84

Description

@deadbeef84
  • Version: v6.9.1
  • Platform: Linux jesper-UX303LB 4.4.0-72-generic 93-Ubuntu SMP Fri Mar 31 14:07:41 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
  • Subsystem: util

I really like the addition of util.inspect.defaultOptions, but what would be even nicer would be some way to specify these using environment variables. That way no code changes would have to be made to specify these and on a local development machine one could set their default preference easily.

I'm suggesting the following environment variables:

NODE_INSPECT_SHOWHIDDEN
NODE_INSPECT_DEPTH
NODE_INSPECT_COLORS
NODE_INSPECT_CUSTOMINSPECT
NODE_INSPECT_SHOWPROXY
NODE_INSPECT_MAXARRAYLENGTH
NODE_INSPECT_BREAKLENGTH

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.utilIssues and PRs related to the built-in util module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions