You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to use the bundled colorize, color and getColor utils to colorize logs in my browser's console, without luck. The result just appears as the uncolorized default:
import{consola}from'consola';import{colors}from'consola/utils';consola.info(`this should be ${colors.red('red')}`);
Since argv.includes("--color") is true in console-log-colors but not in consola, it isn't considered a "supported" environment. I'm not sure what other potential effects of this would be but it seems to work fine for console-log-colors.
First of all, thanks for this amazing package!
I have been trying to use the bundled
colorize
,color
andgetColor
utils to colorize logs in my browser's console, without luck. The result just appears as the uncolorized default:Result:
Using console-log-colors, I had more luck:
Result:
Am I missing something or are the bundled color functions only compatible with terminal consoles?
Additional information
The text was updated successfully, but these errors were encountered: