Asciisay
Like cowsay and yosay, but with whatever ascii art you want.
Install
$ npm install --save asciisay
Usage
const asciisay = ; console; ᐱ ᐱ ╭─── -- ╭───────────────────────────────────────────╮ /__<m_m> │ I am a cat but I could be whatever dude! │ ‾‾‾‾‾ ╰───────────────────────────────────────────╯
To customize your asciisay just use the options object:
const asciisay = ; const myLogo =' ᐱᐱ \n'+' (. .) \n'+' =>▽<= _ \n'+' /|| ||\ / \n'+' (m(m m)m) \n'; const options = avatar: myLogo // Your ascii art padding: 8 // Distance between the longer string of your avatar and the message startFraction: 3 // Portion of free space your message or avatar (the smaller) will appear { return ;} console; ᐱᐱ ╭─────────────────────────╮ ▽<= _ │ I am different cat now! │ /|| ||\ / ╰─────────────────────────╯ m
CLI
You can use asciisay as a cli command
$ npm install --global asciisay
$ fortune | asciisay ᐱ ᐱ ╭─── -- ╭───────────────────────────────────╮ /__<m_m> │ I am a cat not a fortune teller! │ ‾‾‾‾‾ ╰───────────────────────────────────╯