Reputation: 1759
I want to parse strings that contain ANSI escaped markup. I have not been able to find myself a NodeJS / JavaScript module that does exactly what I want it to do. Most modules only work when piped with the stdout, but I want to be able to parse any string to HTML.
The requirements for the module I'm looking are that it should be able to parse all the 8 bright and normal colors, bold, striked, underlined and italic formatting.
Upvotes: 2
Views: 2640
Reputation: 1928
ansi-to-html does that and returns an HTML formatted string.
Upvotes: 1