Skip to content

Respect NO_COLORenvironment variable when using styleText #54365

Closed
@todor-a

Description

@todor-a

What is the problem this feature will solve?

The styleText utility does not take into account if NO_COLOR is passed. It would be nice if it did.

What is the feature you are proposing to solve the problem?

Before applying styles, check if NO_COLOR is set.

Other tools, like picocolors, look at cli flags as well.

Would be happy to submit a PR.

What alternatives have you considered?

No response

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