Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.
This repository was archived by the owner on May 4, 2024. It is now read-only.

[FEATURE] Disable log colors if environment variable is set #80

@akatran

Description

@akatran

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.
image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions