Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

@zachlysobey/cow-log

1.0.2 • Public • Published

cow-log

cow-log is a novelty logger that uses template strings and cowsay.

Usage

$ npm install @zachlysobey/cow-log

Example

const cow = require('@zachlysobey/cow-log')
 
const foo = "bar"
const baz = { arr: [1, 1, 2] }
const qux = { yes: true, no: false }
 
cow.log`
my values: ${{ foo, baz, qux }}
 
Isn't this the coolest? <3 <3 <3
 
1 + 2  = ${1+2}
`

Output would be:

 __________________________________
(                                  )
( my values: {                     )
(   "foo": "bar",                  )
(   "baz": {                       )
(     "arr": [                     )
(       1,                         )
(       1,                         )
(       2                          )
(     ]                            )
(   },                             )
(   "qux": {                       )
(     "yes": true,                 )
(     "no": false                  )
(   }                              )
( }                                )
(                                  )
( Isn't this the coolest? <3 <3 <3 )
(                                  )
( 1 + 2  = 3                       )
(                                  )
 ----------------------------------
        o   ^__^
         o  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||

Keywords

none

Install

npm i @zachlysobey/cow-log

DownloadsWeekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

3.04 kB

Total Files

4

Last publish

Collaborators

  • avatar