Skip to content

util: add %c to ANSI transform for console.log()

Rodrigo Muino Tomonari requested to merge github/fork/jcbhmr/console-c into main

this is something that I saw already had a closed issue #29605 (closed) and I figured I should put my code where my mouth is and open a PR instead of waiting for a long-dead issue response. idk if i should open a new issue instead of a pr first?

I'm also not sure of the policy of nodejs around copying code from other places like from deno. deno already has this %c => ansi thing "solved" so i copied some code from there. idk if this is allowed or what. answered in comment

relevant deno bits:

i would think this is a good improvement idea but idk it was shot down in #29605 (closed) due to complexity concerns.

fix #52350

Merge request reports

Loading