A useful and fun thing about console.log is that you can add CSS styles to it. You can do it with the help of %c variable which gets replaced with ...
For further actions, you may consider blocking this person and/or reporting abuse
Has just die. RIP.
Decorating with consoles 🥁
Remember myself reading a blogpost about how credit cards of millions of people were stolen using an npm package for styling console output. Good old days ☕️
I remember reading this as well... Do you know the title? I'd like to read it again
EDIT: nvm i found it medium.com/hackernoon/im-harvestin...
That's 😱. Thanks Alex and Andrew for sharing. No better way to emphasise on choosing dependencies smartly and carefully.
npmjs.com/package/chalk
this one I used in many node js projects.
chalk is a good option to go for.
Wrote this for fun a while ago that uses one tagged template to color both node.js terminals and frontend dev console text - github.com/Skhmt/ttlog
Cool 👍
Wow! I didn't know that!
I think this is a webkit only thing though, as it surely does not work in terminal. Still an awesome trick!
Yes seems like it. Like others suggested you can try Chalk or any other alternatives available.
That's cool
Yeah that's cool and all but I don't think anyone would ever choose to debug this way just because they might be "bored of console.log"
Ha Ha please do not take the title of this post literally. 😃
This is awesome debugging my JavaScript will be super fun now. It may take a lot longer but it's worth it!
👍