Skip to content

Support an array of formats in util.styleText #11705

Closed
@infrahead

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

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