yosay

Tell Yeoman what to say

BSD-2-Clause 18 个版本
安装
npm install yosay
yarn add yosay
pnpm add yosay
bun add yosay
README

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 `
版本列表
3.0.0 2023-10-27
2.0.2 2018-03-25
2.0.1 2017-07-29
2.0.0 2017-02-13
1.2.1 2016-10-06
1.2.0 2016-06-17
1.1.1 2016-04-04
1.1.0 2015-11-14
1.0.5 2015-07-16
1.0.4 2015-05-21
1.0.3 2015-03-04
1.0.2 2015-01-21
1.0.1 2014-12-25
1.0.0 2014-08-13
0.3.0 2014-06-20
0.2.1 2014-05-16
0.2.0 2014-05-10
0.1.0 2014-05-09