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
Isn't it great if we integrate colors to our console, that means our debug messages will be colorful 🌈
Outcome:
Colorful debug messages while using the debug flag
We can use yellow for info messages, green for success message 🚀
References:
As we're trying to keep the things simple and make the library very lightweight having no-dependencies, we're no going to use any 3rd party libraries (like chalk) for adding colors to the console. We can simply use some special escape sequences with the console.log. More info here.
The text was updated successfully, but these errors were encountered:
Description:
Isn't it great if we integrate colors to our console, that means our debug messages will be colorful 🌈
Outcome:
Colorful debug messages while using the
debug
flagWe can use
yellow
for info messages,green
for success message 🚀References:
As we're trying to keep the things simple and make the library very lightweight having no-dependencies, we're no going to use any 3rd party libraries (like
chalk
) for adding colors to the console. We can simply use some special escape sequences with the console.log. More info here.The text was updated successfully, but these errors were encountered: