1.0.1 • Published 15 days ago

sausage-console-dog v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
15 days ago

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!

1.0.1

15 days ago

1.0.0

15 days ago