An open API service indexing awesome lists of open source software.

https://github.com/ines/console-dot-emoji

:pizza: Custom Console Logging with Emoji
https://github.com/ines/console-dot-emoji

emoji javascript javascript-console

Last synced: about 2 months ago
JSON representation

:pizza: Custom Console Logging with Emoji

Awesome Lists containing this project

README

        

# Custom Console Logging with Emoji

Debugging JavaScript can be painful and often means spending hours looking at boring console logs. Inspired by [console.frog](http://tholman.com/console-dot-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` :beer: and `console.unicorn` 🦄.

[Go here](https://ines.io/blog/custom-console-logging-emoji) to read the blog post and see it in action.

![Preview](https://ines.io/blog/img/emoji-console_preview.jpg)

# Example

Simply include `console.emoji.js` in your project or copy/past/adapt the code.

```javascript
// Logging to the console
console.unicorn("So magical!");

// Output
🦄 So magical!
```

# License

Published under the MIT license.
Inspired by and adapted from [console.frog](https://github.com/tholman/console-dot-frog) by [Tim Holman](http://tholman.com).