Log to console with emojis π¦
πββοΈ Made by @abhijithvijayan
β€οΈ it? βοΈ it on GitHub or Tweet about it.
Art by Colin J. Randall
\
\
\\
\\
>\/7
_.-(6' \
(=___._/` \
) \ |
/ / |
/ > /
j < _\
_.-' : ``.
\ r=._\ `.
<`\\_ \ .`-.
\ r-7 `-. ._ ' . `\
\`, `-.`7 7) )
\/ \| \' / `-._
|| .'
\\ (
>\ >
,.-' >.'
<.'_.''
<'
Ensure you have Node.js 10 or later installed. Then run the following:
# npm
npm install emoji-log
# yarn
yarn add emoji-log
# commonjs
require('emoji-log');
# js or ts
import 'emoji-log';
# Logging
> console.emoji();
> console.emoji(null);
> console.emoji(undefined);
> console.emoji('hello world');
> console.emoji('π¦', 'hello world'); # with custom emoji & data
> console.emoji('πΈ', {hello: 'world'}); # maybe objects
> console.emoji('π₯', new Error('I set the length and emoji'), 15); # with custom emoji, data & line limit length
Looking to contribute? Look for the Good First Issue label.
Please file an issue here for bugs, missing documentation, or unexpected behavior.
- Shared Eslint & Prettier Configuration -
@abhijithvijayan/eslint-config
- Shared TypeScript Configuration -
@abhijithvijayan/tsconfig
- Thanks to Robert Steele for the idea of unifying emojis
- This is sort of a fork of this idea by wesbos
- Special thanks to Jason Laster for transferring
emoji-log
name
MIT Β© Abhijith Vijayan