Skip to content

therealseanwallace/console-frog-plus-plus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A sad frog meme with the caption "MFW I REALISE JS DOESN'T HAVE A NATIVE CONSOLE.FROG METHOD"

Are you sick of debugging with a million boring console.logs? sausage-console-dog just not doing it for you anymore?

Introducing the definitive console logger for the modern era: console-frog-plus-plus!

Install

npm i console-frog-plus-plus

Usage

// CJS
require('console-frog-plus-plus');

// ESM
import 'console-frog-plus-plus';

Example

console.frog('Hello, world!');

Output:

                            -----------------
                           |  Hello, world!  |
                            -----------------
                            /     
               .--._.--.   /
              ( O     O ) /  
              /   . .   \
             .`._______.`.
            /(           )\
          _/  \  \   /  /  \_
       .~   `  \  \ /  /  '   ~.
      {    -.   \  V  /   .-    }
    _ _`.    \  |  |  |  /    .'_ _
    >_       _} |  |  | {_       _<
     /. - ~ ,_-'  .^.  `-_, ~ - .\
             '-'|/   \|'-'

Notes

If you try to log something over some length I didn't bother to calculate and which will depend on your console width, this will not work as expected. I have no plans to fix that. Feel free to submit a PR if it bothers you.

Ribbit! 🐸

Acknowledgements

License

See LICENSE

About

A console.frogger for the modern age

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors