Skip to content

Consider explicit string formatting module #43382

Closed
@BridgeAR

Description

@BridgeAR

What is the problem this feature will solve?

Node.js has multiple formatting related APIs such as util.inspect(), util.format(), util.formatWithOptions(), util.stripVTControlCharacters(str) and multiple util.inspect sub APIs such as colors, custom, styles and defaultOptions.

We recently added util.parseArgs() to the util module and it becomes pretty big overall, while not all really being connected with each other.

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

It is also considered to add new APIs such as a nicer abstraction for colors. To do so, I would like to create a new module that only contains string formatting APIs including the above. These APIs should always be kept supported from the util module as reference to the new module.

@nodejs/util @nodejs/tooling @nodejs/tsc any opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.never-staleMark issue so that it is never considered staleutilIssues 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