IVivan_ah·Apr 19, 2024
There is nice tool called `aha` that converts ANSI color codes to HTML colors. See https://github.com/theZiz/aha
Example usage: pipe to it any command with color output then send result to an .html file:
git diff --color | aha > ~/Deskop/changes.html
Very useful in combination with the `--color-words` option for git diff, which highlits only specific words that were changed, which is great when reviewing changes to text files (e.g. blog post written as .md).
In Ask HN: What are your favorite tiny, single purpose tools?