@franco-grobler/cowsay-wasm-nodejs
v0.3.24
Published
WebAssembly bindings for Cowsay-RS
Downloads
19
Maintainers
Readme
Cowsay-rs
A Rust implementation of the classic cowsay program.
Installation
From Source
You can build it from the source code:
git clone https://github.com/franco-grobler/cowsay-rs.git
cd cowsay-rs
cargo install --path crates/cowsay-cliUsage
The command-line interface is available via the cowsay-rs binary.
Basic Usage
To have a cow say something, simply provide a message:
cowsay-rs "Moo!" ______
< Moo! >
------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||Listing Available Cows
You can list all the available cowfiles:
cowsay-rs -lChoosing a Cow
Use the -f flag to select a different character:
cowsay-rs -f tux "Hello from Tux!" _________________
< Hello from Tux! >
-----------------
\
\
.--.
|o_o |
|:_/ |
// \ \
(| | )
/'\_ _/`\
\___)=(___/Other Options
There are various flags to alter the cow's appearance. For example, to make the cow look "greedy":
cowsay-rs -g "I want more grass" ___________________
< I want more grass >
-------------------
\ ^__^
\ ($$)\_______
(__)\ )\/\
||----w |
|| ||For a full list of options, you can use the --help flag:
cowsay-rs --helpContributing
Contributions are welcome! If you'd like to help, please feel free to open an issue or submit a pull request.
