sausage-console-dog

1.0.1 • Public • Published

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!

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i sausage-console-dog

    Weekly Downloads

    16

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    5.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • maoshizhong