ansi-str

This is a library for work with coloured and formatted strings on ANSI terminals.
Its a library agnostic library. Therefore it can be used with any ansi color library. (e.g. owo-colors, nu-ansi-term).
Usage
use AnsiStr;
use ;
Running this code will result in the following output.

For more examples, you check the directory of the same name..
You can find a list of methods which are provided by the library on the documentation page.
Note
The library has derivatived from zhiburt/ansi-cut