🖍 Terminal string styling done right
-
Updated
Sep 8, 2025 - JavaScript
🖍 Terminal string styling done right
📜 Create mutable log lines into the terminal, and give life to your logs!
A JavaScript ANSI color/style management. ANSI parsing. ANSI to CSS. Small, clean, no dependencies.
Strip ANSI escape codes
Get the `String#substr` correctly handling ansi escape codes.
Get the longest word length in text. It also correctly calculate the length of the words containing ansi escape codes.
Render text with ANSI escape codes as HTML
Party in your Terminal!
You can draw your own ASCII arts with different colors and characters, the colors are generated by using ANSI escape codes.
Add a description, image, and links to the ansi-escape-codes topic page so that developers can more easily learn about it.
To associate your repository with the ansi-escape-codes topic, visit your repo's landing page and select "manage topics."