Skip to content

Conversation

owl-from-hogvarts
Copy link
Owner

Checklist
  • npm install && npm test passes
  • tests are included
  • documentation is changed or added
  • commit message follows commit guidelines
Description of change

This is optional addition to nodejs#2428

Sometimes PATH environment variable may contain important information to fix issue as was in nodejs#2381. But now this var printed as very long string which is really hard to read and understand. So the propose of this PR is to pretty print PATH environment variable.

The way this goal is achived is the next: just split the string by comma and represent it as array.

The edge case is do we really need to preserve the exectly original value (the whole string) because representing as array may confuse an end user. Just in case, I added warning message on top of an erray that it is only representation and real value is just a string.

Another way to solve the problem is to provide both representations or make representation switchable by e.g. CLI flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant