Colorful console.log in javascript like Astro

April 28, 2024

Turning boring console.log into colorful log in javascript
Turning boring console.log into colorful log in javascript

I recently try astro and the experiences was amazing. But what I love the most is something fancy during development time which is the colorful console which is beautiful.

I build something similar which is results in this.

Result:

Colorful log's example
Colorful log's example

Code: