Skip to content

Support an array of formats in util.styleText #11705

Description

@infrahead

What is the problem this feature would solve?

Was glad to see styleText implemented in #9287 but then shortly thereafter Node added the ability to specify multiple formats in an array. Was hesitant to mark this as a bug vs feature request.

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

https://nodejs.org/api/util.html#utilstyletextformat-text
nodejs/node#52040

What alternatives have you considered?

continuing to use original API with nested function calls

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions