New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

asciisay

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asciisay

Make your ascii avatar say something

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Asciisay

Like cowsay and yosay, but with whatever ascii art you want.

Install

$ npm install --save asciisay

Usage

const asciisay = require('asciisay');

console.log(asciisay("I'm a cat but I could be whatever"));



        ᐱ  ᐱ     
   ╭───( -.-)     ╭───────────────────────────────────────────╮
  /(=>__<m_m>     │ I am a cat, but I could be whatever dude! │
  ‾‾‾‾‾           ╰───────────────────────────────────────────╯
 

To customize your asciisay just use the options object:

const asciisay = require('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
}

function myLogoSay(message) {
    return asciisay(message, options);
}

console.log(myLogoSay("I am different cat now!"));

    ᐱᐱ      
   (. .)       ╭─────────────────────────╮
   =>▽<=   _   │ I am different cat now! │
  /|| ||\ /    ╰─────────────────────────╯
 (m(m m)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! │
  ‾‾‾‾‾           ╰───────────────────────────────────╯

LICENSE ISC

FAQs

Package last updated on 03 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc