Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeoman/yosay
Tell Yeoman what to say
https://github.com/yeoman/yosay
Last synced: 3 months ago
JSON representation
Tell Yeoman what to say
- Host: GitHub
- URL: https://github.com/yeoman/yosay
- Owner: yeoman
- License: bsd-2-clause
- Created: 2014-05-09T13:39:55.000Z (over 10 years ago)
- Default Branch: main
- Last Pushed: 2023-10-30T16:07:07.000Z (over 1 year ago)
- Last Synced: 2024-11-08T02:41:46.065Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 105 KB
- Stars: 205
- Watchers: 17
- Forks: 43
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
- Security: .github/security.md
Awesome Lists containing this project
- awesome-ascii - yosay
README
# yosay
> Tell Yeoman what to say
Like [cowsay](https://en.wikipedia.org/wiki/Cowsay), but less cow.
![](screenshot.png)
## Install
```sh
npm install yosay
```## Usage
```js
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`](https://github.com/chalk/chalk) before passing it to `yosay`.*
## CLI
```sh
npm install --global yosay
``````
$ yosay --helpUsage
$ yosay
$ yosay --maxLength 8
$ echo | yosayExample
$ yosay 'Sindre is a horse'_-----_
| |
|--(o)--| ╭──────────────────────────╮
`---------´ │ Sindre is a horse │
( _´U`_ ) ╰──────────────────────────╯
/___A___\ /
| ~ |
__'.___.'__
´ ` |° ´ Y `
```