Crates.io | test-to-ascii-art |
lib.rs | test-to-ascii-art |
version | 0.1.0 |
source | src |
created_at | 2023-06-28 17:20:30.432813 |
updated_at | 2023-06-28 17:20:30.432813 |
description | A simple program to convert text to ASCII art. |
homepage | |
repository | |
max_upload_size | |
id | 902654 |
size | 18,220 |
I made this crate for my project, if you need larger text in terminal, you need to use ascii art characters. This simple crate provides one function to make a ascii art string.
fn convert (input: String) -> Result<String, String>
use text_to_ascii_art::convert;
fn main () {
match convert("Hello in ascii".to_string()) {
Ok(string) => println!("{}", string),
Err(err) => println!("Error: {}", err),
}
}
[dependencies]
text-to-ascii-art="0.1"
Examples: gymnasium/examples/