You Can Use CSS To Style console.log!

preview_player
Показать описание


🌎 Find Me Here:

#Shorts
Рекомендации по теме
Комментарии
Автор

Imagine creating a whole website in the console

larsverschoor
Автор

wow bro, more things I can waste time on instead of coding! cool

dziugazz
Автор

This can motivate kids to code. It could also be used as a way to bide time after hours of coding to relax the mind. Too many programmers lost their passion for their work because of repetitive coding

stargazertales
Автор

I thought this said "You Can Use CSS To console.log"

mushroomcraft
Автор

Looking forward to styling prompt(), alert() and confirm()

tobi_dosumu
Автор

i just drank a coke and realised it has 35grams of sugar

quixote
Автор

Styling ? When I'm just trying to find why my code is working... Only few will understand 🤣

holuhola
Автор

Apparently, from when i had been checking that, you can't use most outer layout properties (mainly _display_ ), thus excluding _margin_

HuntingKingYT
Автор

Awesome! Going to surprise my boss with this lol. Thanks

Alan_the_Red
Автор

I remember one time i got an offer through the command line. I must say it's a good trend.

imiebaka
Автор

It can actually be helpful if you make a small array of those string values, and use them as template literal for different kind of console outputs like green for when the code is working red for when it's not working (just don't get confused with errors)

thatsalot
Автор

Do a tutorial on how we can style the alert with css

goodluckoriuwa
Автор

In before I end up debugging why my console.log doesn't look like the way I wanted it to when that console.log was supposed to help me debug my original code.

wlockuz
Автор

Now that you've showed me this, i hope i don't get addicted to style console log messages :)

NNNedlog
Автор

Nodejs Don't have Same Behaviour so You gotta have some hexa-decimal Parsing but that's already implemented by chalk module just use it :D

bilalkureshi
Автор

very useful and lovely. Thanks Kyle and keep going...

WiLDeveD
Автор

Not totally useless info. lol You could create a snippet in vs-code or whatever to drop in your custom message and have it stand out if you've got other output causing clutter (or tweak the color slightly for different log messages without worrying about the content of the message). This could legit save people time.

love-hammer
Автор

Really looking forward to annoying debugging because library devs decided that simply having a log of monospaced strings was too boring for them and that they could do better.

azaria_phd
Автор

Yay! Now i can make my debug logs look better than the actual app!

AustiBomb
Автор

Didn't work very well for me in Firefox. Pretty cool that it's even possible though.

swimmyJones