emoji-log
TypeScript icon, indicating that this package has built-in type declarations

1.0.2Β β€’Β PublicΒ β€’Β Published

emoji-log

Log to console with emojis πŸ¦„

πŸ™‹β€β™‚οΈ Made by @abhijithvijayan

Donate: PayPal, Patreon

Buy Me a Coffee


❀️ it? ⭐️ it on GitHub or Tweet about it.

    Art by Colin J. Randall

               \
                \
                 \\
                  \\
                   >\/7
               _.-(6'  \
              (=___._/` \
                   )  \ |
                  /   / |
                 /    > /
                j    < _\
            _.-' :      ``.
            \ r=._\        `.
           <`\\_  \         .`-.
            \ r-7  `-. ._  ' .  `\
             \`,      `-.`7  7)   )
              \/         \|  \'  / `-._
                         ||    .'
                          \\  (
                           >\  >
                       ,.-' >.'
                      <.'_.''
                        <'

Table of Contents

Installation

Ensure you have Node.js 10 or later installed. Then run the following:

# npm
npm install emoji-log

# yarn
yarn add emoji-log

Usage

# 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

Browser
Node

Issues

Looking to contribute? Look for the Good First Issue label.

πŸ› Bugs

Please file an issue here for bugs, missing documentation, or unexpected behavior.

See Bugs

Linting & TypeScript Config

Credits

License

MIT Β© Abhijith Vijayan

Package Sidebar

Install

npm i emoji-log

Weekly Downloads

1,527

Version

1.0.2

License

MIT

Unpacked Size

239 kB

Total Files

7

Last publish

Collaborators

  • abhijithvijayan