I maintain various command-line tools that produce coloured output with ANSI escape codes. Every time I change the output format, I manually update various terminal screenshots on the project READMEs. I've been looking into using carbon to automate this process (and produce much nicer screenshots!).
This may be considered outside the scope for carbon, but it'd be really great to be able to generate images of files containing arbitrary ANSI escapes (rather than doing syntax highlighting on the file). This would allow using carbon to generate screenshots of terminal interactions as well as code snippets.
What do you think?
I'm open to supporting it!
@mfix22 @CraigFe Integrating something like this: https://github.com/rburns/ansi-to-html seems like the way to go.
Edit: https://www.npmjs.com/package/ansicolor might work as well.
Most helpful comment
I'm open to supporting it!