2 releases (1 stable)
1.0.0 | Mar 2, 2024 |
---|---|
0.1.0 | Feb 25, 2024 |
#700 in Text processing
Used in 3 crates
33KB
428 lines
uwu
A uwu implementation inspired by Daniel Liu's uwu that runs on all machines and on the web.
This repository is divided into the following crates:
- uwu-rs - the library
- uwu_cli - the CLI tool
- uwu_wasm - the WebAssembly/WASM bundle for the web
- www - the web version
Quick start
For Rust projects
Add the uwu library to your project with:
cargo add uwu-rs
Then use it:
let uwuified = uwu_rs::Uwu::new().uwuify("Hello world!");
For JavaScript projects
Add the uwu library to your project with:
npm install uwu-rs
Then use as follows in your code:
import init, {uwuify} from 'uwu-rs';
init().then(() => {
console.log(uwuify('I have been uwuified!'));
});
For the CLI
Install the executable with:
cargo install uwu_cli
Then use it:
# directly from the arguments
uwu Hello world!
# from a file
uwu --file uwu.txt
# from stdin
uwu <<EOF
Life in uwu land,
Is fantastic!
EOF
# to a file
uwu --output uwu.out Hello world!
Dependencies
~1–1.8MB
~32K SLoC