Skip to content

Add console.log() %c support for parity with browsers, Deno, and Bun #52350

Description

@jcbhmr

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

Activity

  1. added
    consoleIssues and PRs related to the console subsystem.
    on Apr 3, 2024
  2. changed the title [-]Add console.log() %c support for parity with Bun, Deno, and browsers[/-] [+]Add console.log() %c support for parity with browsers, Deno, and Bun[/+] on May 23, 2024
  3. github-actions commented on May 22, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 210 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  4. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on May 22, 2026
  5. stefnotch commented on May 22, 2026

    @stefnotch

    This is still very relevant to me.

  6. removed
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on May 23, 2026
  7. github-actions commented on Aug 22, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 90 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  8. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Aug 22, 2026
  9. github-actions commented on Sep 22, 2026

    @github-actions
    Contributor

    This issue has been automatically closed after 30 days of inactivity following its stale status (no activity for a total of 120 days).
    If this is still relevant, feel free to reopen it or leave a comment with additional details so we can continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    consoleIssues and PRs related to the console subsystem.staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions