Show HN: Fancy-ANSI – Small JavaScript library for converting ANSI to HTML (github.com)
I made this tool to add support for custom ANSI palettes to kubetail (https://github.com/kubetail-org/kubetail). Maybe you'll find it useful too.
Let me know if you have any suggestions!
11 comments
[ 3.8 ms ] story [ 29.4 ms ] threadWhich "ANSI" did you use as reference?
The demo helps a bit: https://kubetail-org.github.io/fancy-ansi/
Blink support would use CSS animations which requires a deeper level of integration than the other SGR parameters so I wanted to hold off until I could iterate over a solution with a user. If you'd like to use Fancy-ANSI with blink support, please let me know on GitHub and I can implement it fairly quickly.
The full list of supported SGR parameters is in the README: https://github.com/kubetail-org/fancy-ansi?tab=readme-ov-fil...
Let me know if you have any suggestions on how to make it clearer which subset of ANSI is supported.
To see what is supported, see the screenshot in the docs: https://docs.rs/anstyle-svg/latest/anstyle_svg/