Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: improve inspect compact #26269

Closed
wants to merge 3 commits into from

Commits on Feb 28, 2019

  1. util: add compact depth mode

    This overloads the `compact` option from `util.inspect()`. If it's
    set to a number, it is going to align all most inner entries on the
    same lign if they adhere to the following:
    
    * The entries do not exceed the `breakLength` options value.
    * The entry is one of the local most inner levels up the the one
      provided in `compact`.
    BridgeAR committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    fd1ac3d View commit details
    Browse the repository at this point in the history
  2. util: group array elements together

    When using `util.inspect()` with `compact` mode set to a number, all
    array entries exceeding 6 are going to be grouped together into
    logical parts.
    BridgeAR committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    2163a25 View commit details
    Browse the repository at this point in the history
  3. fixup: fix typo

    BridgeAR committed Feb 28, 2019
    Configuration menu
    Copy the full SHA
    67f5fb3 View commit details
    Browse the repository at this point in the history