-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.never-staleMark issue so that it is never considered staleMark issue so that it is never considered staleutilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.
Description
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?
ljharb, mcollina, salmantec, cola119, daeyeon and 10 moreQix-Rexogamer
Metadata
Metadata
Assignees
Labels
feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.never-staleMark issue so that it is never considered staleMark issue so that it is never considered staleutilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.