mirc-rs/readme.md

16 lines
383 B
Markdown
Raw Normal View History

2022-06-02 13:50:42 -04:00
# mirc-rs
A simple mirc color code formatter partially inspired by [yansi](https://github.com/SergioBenitez/yansi)
2022-06-02 18:02:04 -04:00
[docs.rs](https://docs.rs/mirc/latest/mirc/index.html)
2022-06-02 13:50:42 -04:00
## Usage
```rust
use mirc::Paint;
2022-06-02 13:50:42 -04:00
irc.send_privmsg("#channel", Paint::red("red text"));
irc.send_privmsg("#channel", format!("Hello: {}", Paint::blue("nick")));
2022-06-02 13:50:42 -04:00
```
Works on any type that impl's fmt::Display