Tell Yeoman what to say


Keywords
cli-app, cli, yeoman, yo, cowsay, say, box, message, ansi
License
BSD-2-Clause
Install
npm install yosay@1.0.2

Documentation

yosay

Tell Yeoman what to say

Like cowsay, but less cow.

Install

npm install yosay

Usage

import yosay from 'yosay';

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

/*
     _-----_     โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
    |       |    โ”‚ Hello, and welcome to my โ”‚
    |--(o)--|    โ”‚ fantastic generator full โ”‚
   `---------ยด   โ”‚   of whimsy and bubble   โ”‚
    ( _ยดU`_ )    โ”‚           gum!           โ”‚
    /___A___\   /โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
     |  ~  |
   __'.___.'__
 ยด   `  |ยฐ ยด Y `
*/

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

CLI

npm install --global yosay
$ yosay --help

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

  Example
    $ yosay 'Sindre is a horse'

     _-----_
    |       |
    |--(o)--|    โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
   `---------ยด   โ”‚     Sindre is a horse    โ”‚
    ( _ยดU`_ )    โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
    /___A___\   /
     |  ~  |
   __'.___.'__
 ยด   `  |ยฐ ยด Y `