Debugging JavaScript can be painful and often means spending hours looking at boring console logs. Inspired by console.frog by Tim Holman, I made my own console logger — but with customizable commands and emojis. Logging to the console is finally fun again, thanks to console.beer
🍺 and console.unicorn
🦄.
Go here to read the blog post and see it in action.
Simply include console.emoji.js
in your project or copy/past/adapt the code.
// Logging to the console
console.unicorn("So magical!");
// Output
🦄 So magical!
Published under the MIT license. Inspired by and adapted from console.frog by Tim Holman.