Skip to content

Respect NO_COLORenvironment variable when using styleText #54365

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.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