sausage-console-dog
v1.1.0
Published
A (subjectively) better way to log to the console, now with adjustable length of dog!
Downloads
16
Maintainers
Readme
sausage-console-dog
When console.log
has gotten boring, liven up your console with the most loving Dachshund. He's a stretchy boy, so you can even log with more sausage dog than you've ever thought possible.
Install
npm install sausage-console-dog
Usage
// CJS
require('sausage-console-dog');
// ESM
import 'sausage-console-dog';
The following dogs:
console.dog('Woof woof woof!');
console.dog('Bark bark bark!', { extraSausage: 20 });
Will dog the following:
------------------------------
Woof woof woof!
------------------------------
\
\
\
) .-.
(________()6 `-,
( ___ /''"`
//\\ //\\
"" "" "" ""
-----------------------------------
Bark bark bark!
-----------------------------------
\
\
\
) .-.
(____________________________()6 `-,
( _______________________ /''"`
//\\ //\\
"" "" "" ""
Params
input
(any; default: "Woof woof!") - The input to output. Objects will be stringified via JSON.stringify
, otherwise .toString
will be called.
options
options.extraSausage
(number; optional; default: 0) - The higher the number, the greater the dog's sausagicity!