1 | # yosay [![Build Status](https://travis-ci.org/yeoman/yosay.svg?branch=master)](https://travis-ci.org/yeoman/yosay)
|
2 |
|
3 | > Tell Yeoman what to say
|
4 |
|
5 | Like [cowsay](http://en.wikipedia.org/wiki/Cowsay), but less cow.
|
6 |
|
7 | ![](screenshot.png)
|
8 |
|
9 |
|
10 | ## Install
|
11 |
|
12 | ```
|
13 | $ npm install --save yosay
|
14 | ```
|
15 |
|
16 |
|
17 | ## Usage
|
18 |
|
19 | ```js
|
20 | const yosay = require('yosay');
|
21 |
|
22 | console.log(yosay('Hello, and welcome to my fantastic generator full of whimsy and bubble gum!'));
|
23 |
|
24 | /*
|
25 | _-----_ ╭──────────────────────────╮
|
26 | | | │ Hello, and welcome to my │
|
27 | |--(o)--| │ fantastic generator full │
|
28 | `---------´ │ of whimsy and bubble │
|
29 | ( _´U`_ ) │ gum! │
|
30 | /___A___\ /╰──────────────────────────╯
|
31 | | ~ |
|
32 | __'.___.'__
|
33 | ´ ` |° ´ Y `
|
34 | */
|
35 | ```
|
36 |
|
37 | *You can style your text with [`chalk`](https://github.com/sindresorhus/chalk) before passing it to `yosay`.*
|
38 |
|
39 |
|
40 | ## CLI
|
41 |
|
42 | ```
|
43 | $ npm install --global yosay
|
44 | ```
|
45 |
|
46 | ```
|
47 | $ yosay --help
|
48 |
|
49 | Usage
|
50 | $ yosay <string>
|
51 | $ yosay <string> --maxLength 8
|
52 | $ echo <string> | yosay
|
53 |
|
54 | Example
|
55 | $ yosay 'Sindre is a horse'
|
56 |
|
57 | _-----_
|
58 | | |
|
59 | |--(o)--| ╭──────────────────────────╮
|
60 | `---------´ │ Sindre is a horse │
|
61 | ( _´U`_ ) ╰──────────────────────────╯
|
62 | /___A___\ /
|
63 | | ~ |
|
64 | __'.___.'__
|
65 | ´ ` |° ´ Y `
|
66 | ```
|
67 |
|
68 |
|
69 | ## License
|
70 |
|
71 | [BSD license](http://opensource.org/licenses/bsd-license.php)
|
72 | Copyright (c) Google
|