yansi

Crates.ioyansi
lib.rsyansi
version1.0.1
sourcesrc
created_at2017-06-02 04:14:59.893274
updated_at2024-03-13 07:48:07.624195
descriptionA dead simple ANSI terminal color painting library.
homepage
repositoryhttps://github.com/SergioBenitez/yansi
max_upload_size
id17267
size166,597
Sergio Benitez (SergioBenitez)

documentation

https://docs.rs/yansi

README

yansi logo  Yansi

A dead simple ANSI terminal color painting library.

Build Status Current Crates.io Version Documentation

Usage

In your Cargo.toml:

[dependencies]
yansi = "1.0"

In your source code:

use yansi::Paint;

println!("Testing, {}, {}, {}!",
    "Ready".bold(),
    "Set".black().on_yellow().invert().italic(),
    "STOP".white().on_red().bright().underline().bold());

> Testing, Ready, Set, STOP!

See the rustdocs for complete usage details.

Features

Why yet another ANSI terminal coloring library? Here are some reasons:

License

yansi is licensed under either of the following, at your option:

Commit count: 75

cargo fmt