This repository has been archived by the owner on May 4, 2024. It is now read-only.
[FEATURE] Disable log colors if environment variable is set #80
Labels
Enhancement
new feature or improvement
💎 Free Internet Points 💎
similar to "Good First issue" - although more impactful
Good First Issue
good issue or PR for newcomers
Using the npmlog within IDEs like Eclipse or other tools that does not support colors, the outcome show instead of colors, the special characters equivalents.
This is an example using the node-gyp package that uses npmlog for logging.
If someone set a environment variable could this prevent the colors from being displayed?
Node.js already has a environment variable for disabling colors but npmlog does not seems to respect it.
That is NODE_DISABLE_COLORS
Could use the same environment variable or define a new one, doesn't matter.
The text was updated successfully, but these errors were encountered: