smallcolors

Crates.iosmallcolors
lib.rssmallcolors
version0.1.2
sourcesrc
created_at2022-05-01 00:42:37.167565
updated_at2022-05-20 20:50:41.690878
descriptionA less-bloated color crate.
homepagehttps://github.com/RedsonBr140/smallcolors
repositoryhttps://github.com/RedsonBr140/smallcolors
max_upload_size
id578401
size5,289
(RedsonBr140)

documentation

README

smallcolors

** :warning: This project was abandoned** If you liked the name, contact me: redson@riseup.net The repository will be deleted.

Usage

Basic Usage

use smallcolors;

fn main() {
    let reset = smallcolors::reset;
    println!("\n{}Hello{reset}, {}this{reset} {}code{reset} exists.", smallcolors::blue, smallcolors::purple, smallcolors::cyan);
    println!("{}Oi{reset}, {}esse{reset} {}código{reset} existe.\n\n", smallcolors::blue, smallcolors::purple, smallcolors::cyan);
}

Bold

use smallcolors;

fn main() {
    let reset = smallcolors::reset;
    println!("\n{}Hello{reset}, {}this{reset} {}code{reset} exists.", smallcolors::bold::blue, smallcolors::bold::purple, smallcolors::bold::cyan);
    println!("{}Oi{reset}, {}esse{reset} {}código{reset} existe.\n\n", smallcolors::bold::blue, smallcolors::bold::purple, smallcolors::bold::cyan);
}

Commit count: 0

cargo fmt