-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Description
Node's console currently supports a number of formatters, s, j, d, o, O, i, f
. However, it doesn't support %c
:
> console.log('%cHello World', 'color:green; background:yellow;')
%cHello World color:green; background:yellow;
The same code in Safari, Firefox, and Chrome does this:
The Console spec doesn't give a ton of help on what %c
should do, other than to say that it "Applies provided CSS."
Obviously there are aspects of this that don't make sense in the terminal vs. a browser, but perhaps some of it does? It would be nice if node's console
could do more than ignore %c
.
Apologies if this has come up in the past and been rejected. I wasn't able to find a previous discussion.
jaydenseric, jcbhmr and haltcase
Metadata
Metadata
Assignees
Labels
consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.