10 releases

0.1.10 Jun 8, 2022
0.1.9 Jun 8, 2022

#6 in #paint

32 downloads per month

MIT license

8KB
179 lines

mirc-rs

Crates.io

A simple mirc color code formatter partially inspired by yansi

docs.rs

Usage

use mirc::Paint;

irc.send_privmsg("#channel", Paint::red("red text"));
irc.send_privmsg("#channel", format!("Hello: {}", Paint::blue("nick")));

Works on any type that impl's fmt::Display


lib.rs:

A simple mirc color code formatter partially inspired by yansi

Usage

use mirc::Paint;

irc.send_privmsg("#channel", Paint::red("red text"));
irc.send_privmsg("#channel", format!("Hello: {}", Paint::blue("nick")));

No runtime deps