aha

Converts ANSI color codes to HTML for terminal output display

brewmacoslinux
Try with needOr install directly
Source

About

ANSI HTML adapter

Commands

aha

Examples

Convert colored command output to HTML file$ ls --color=always | aha > output.html
Convert grep output with colors to HTML$ grep --color=always 'pattern' file.txt | aha > result.html
Convert cat output with ANSI codes to HTML$ cat colored_file.txt | aha -b > page.html