-
-
Notifications
You must be signed in to change notification settings - Fork 34.2k
Open
Labels
consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.
Description
would be fixed by #49205
My attempt at a compat table of ANSI and %c:
| %c | ANSI | |
|---|---|---|
| Node.js | ❌ | ☑️ |
| Deno | ☑️ | ☑️ |
| Bun | ☑️ | ☑️ |
| Chrome | ☑️ | ☑️ |
| Firefox | ☑️ | ❌ |
| Safari | ☑️ | ? |
Why this would be a good idea:
- Feature parity with other desktop JavaScript runtimes like Deno and Bun
- Allow documentation authors to recommend using %c instead of ANSI for more compatibility without "%c works everywhere except Node.js" clauses
- %c is ignored in unsupported environments (like current Node.js) whereas ANSI causes jargon to be printed (particularly in Firefox). Thus, encouraging %c is more "progressive enhancement" or "graceful degradation" than ANSI ??
basically just "everyone else is doing it, so it's probably a good idea to conform to what users expect"
previous issue #29605
bb010g, LavransBjerkestrand and stefnotch
Metadata
Metadata
Assignees
Labels
consoleIssues and PRs related to the console subsystem.Issues and PRs related to the console subsystem.