Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morinokami/deno-says
A Deno version of the cowsay command.
https://github.com/morinokami/deno-says
Last synced: 1 day ago
JSON representation
A Deno version of the cowsay command.
- Host: GitHub
- URL: https://github.com/morinokami/deno-says
- Owner: morinokami
- License: other
- Created: 2024-10-14T13:23:13.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-15T17:12:16.000Z (2 months ago)
- Last Synced: 2024-12-23T12:06:22.581Z (6 days ago)
- Language: TypeScript
- Homepage: https://jsr.io/@morinokami/deno-says
- Size: 4.88 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @morinokami/deno-says
A Deno version of the [`cowsay`](https://en.wikipedia.org/wiki/Cowsay) command.
## Usage
You can run deno-says using the following command:
```sh
deno run jsr:@morinokami/deno-says 'Hello, World!'
```This will output the following:
```
_______________
< Hello, World! >
---------------
\ _
\ ( ・ヽ
\ \
| `ヽ
⎩ ト、
u¯u︶u
```A maximum width can be specified using the `--width` flag:
```sh
deno run jsr:@morinokami/deno-says --width 5 'Hello from Deno!'
```This will output the following:
```
_______
< Hello >
< from >
< Deno! >
-------
\ _
\ ( ・ヽ
\ \
| `ヽ
⎩ ト、
u¯u︶u
```Addtionally, you can use the `say` function in your own code:
```ts
import { say } from "jsr:@morinokami/deno-says/say";say("Hello, World!");
```