Closed
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?