Anser - ANSI Sequence Parser

JSON →
library 2.3.5 ·javascript
verified May 27, 2026

Anser is a low-level parser for ANSI escape codes, converting terminal text with color/style sequences into HTML elements, JSON, or plain text. Version 2.3.5 is the current stable release, with infrequent updates focused on bug fixes and edge cases. Key differentiators: supports true color (24-bit), 256-color palette, and SGR parameters; provides both HTML and JSON output; includes link detection and HTML escaping; has TypeScript definitions. Alternatives like chalk focus on terminal output, not parsing, while ansi-to-html is less feature-rich. Released under MIT license.

total hits 33
actors 9 distinct systems
last hit 2d ago AhrefsBot
Amazonbot
4
MetaBot
4
GPTBot
2
ByteDance
2
Script
1
Search engines
1
Humans
7

top countries 🇺🇸 United States · 🇩🇪 Germany · VN · 🇫🇷 France · 🇨🇦 Canada