| Crates.io | ansi-to-html |
| lib.rs | ansi-to-html |
| version | 0.2.2 |
| created_at | 2020-11-13 18:25:47.146391+00 |
| updated_at | 2024-11-29 18:58:34.927243+00 |
| description | ANSI escape codes to HTML converter |
| homepage | https://github.com/Aloso/to-html/tree/master/crates/ansi-to-html |
| repository | https://github.com/Aloso/to-html |
| max_upload_size | |
| id | 312055 |
| size | 43,970 |
Rust library to convert a string that can contain ANSI escape codes to HTML.
This crate currently supports SGR parameters (text style and colors). The supported styles are:
Not supported SGR parameters (note that most of these are niche features and rarely supported by terminals):
All unsupported ANSI escape codes are stripped from the output.
It should be easy to add support for more styles, if there's a straightforward HTML representation. If you need a different style (e.g. doubly underlined), file an issue.