-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"%c" for style-outputting suggested #40057
Comments
Not a bad idea but not sure if we should implement this on a different method in the We should document this behavior change somewhere if we ever decide to implement this. |
Duplicate of #40057 |
@devsnek I think you marked it as a duplicate of the wrong issue 👀 |
oops |
Duplicate of #29605 |
Generally speaking, Node.js can now support colorful output through ASCII colors table. However it's not so easy to read and remember. In the Google's chrome, we can use something like "%c" to output styles, Take this as an example:
The result is:
Now let's see a more complicated example:
I know Node.js is for backend programming, however it should be sync with Chrome's functions in style settings, what's more: This function is better than using something like '\x1B[32m' (PS: Do you know what is for "color:pink" without looking for ASCII Color Table?)
Hope "Style-Outputting" will be supported later in Node.js :)
The text was updated successfully, but these errors were encountered: