-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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.utilIssues 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?
Currently, using multiple styles with util.styleText() is slightly verbose:
console.log(
util.styleText('bold', util.styleText('red', 'Bold and red!')),
);
What is the feature you are proposing to solve the problem?
Maybe multiple styles per format
string could be supported – e.g.:
console.log(
util.styleText('bold+red', 'Bold and red!'),
);
Downside: It would make autocomplete in IDEs less straightforward if not impossible.
Ha4lan
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.utilIssues and PRs related to the built-in util module.Issues and PRs related to the built-in util module.