1.0.0 • Published 5 years ago

foxsay v1.0.0

Weekly downloads
1
License
BSD-2-Clause
Repository
gitlab
Last release
5 years ago

foxsay

Tell the fox what to say

Like cowsay, but less cow.

npm.io

Forked from yosay

Install

$ npm install foxsay

Usage

const foxsay = require('foxsay');

console.log(foxsay('Hello, and welcome to my fantastic generator full of whimsy and bubble gum!'));

/*
   ,-.      .-,     ╭──────────────────────────╮
   |-.\ __ /.-|     │ Hello, and welcome to my │
   \  `    `  /     │ fantastic generator full │
   /  _    _  \     │   of whimsy and bubble   │
  |  _o\  /o_  |    │           gum!           │
   '._=/  \=_.'     ╰──────────────────────────╯
     {`\()/`}`\
     {      }  \
     |{    }    \
     \ '--'   .- \
     |-      /    \
     | | | | |     ;
     | | |.;.,..__ |
   .-"";`         `|
  /    |           /
  `-../____,..---'`
*/

You can style your text with chalk before passing it to foxsay.

CLI

$ npm install --global foxsay
$ foxsay --help

  Usage
    $ foxsay <string>
    $ foxsay <string> --maxLength 8
    $ echo <string> | foxsay

  Example
    $ foxsay 'Sindre is a horse'

   ,-.      .-,
   |-.\ __ /.-|
   \  `    `  /     ╭──────────────────────────╮
   /  _    _  \     │     Sindre is a horse    │
  |  _o\  /o_  |    ╰──────────────────────────╯
   '._=/  \=_.'
     {`\()/`}`\
     {      }  \
     |{    }    \
     \ '--'   .- \
     |-      /    \
     | | | | |     ;
     | | |.;.,..__ |
   .-"";`         `|
  /    |           /
  `-../____,..---'`

License

BSD-2-Clause © Quick Brown Fox Labs