Skip to content

yeoman/yosay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f781247 · Feb 7, 2025

History

78 Commits
Feb 7, 2025
Oct 27, 2023
Oct 27, 2023
Oct 27, 2023
Mar 25, 2018
Mar 25, 2018
Oct 27, 2023
Oct 27, 2023
Mar 25, 2018
Oct 27, 2023
Oct 27, 2023
Mar 25, 2018

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 `