consola icon indicating copy to clipboard operation
consola copied to clipboard

🎨 Allow configuring consola to auto colorize the according to type

Open jd-solanki opened this issue 1 year ago • 1 comments

Describe the feature

Hi 👋🏻

I'm using consola in all of my project and in few of them I've to colorize the output text along with the type. For example with consola.info we'll get output like below:

image
consola.info('🚀 Utils loaded')

However, I want to colorize it like below when I use info: image

(I've to write like this everywhere: consola.info(colorize('cyan', '🚀 Utils loaded')))

This will be same for error, warn, success, etc

Additional information

  • [ ] Would you be willing to help implement this feature?

jd-solanki avatar May 24 '24 08:05 jd-solanki

Good idea. We can allow this opt-in per type (pr welcome)

pi0 avatar Jun 08 '24 15:06 pi0