π Terminal string styling done right
JavaScript 23.3k 1.6k
ANSI escape codes for styling strings in the terminal
JavaScript 472 85
Detect whether a terminal supports color
JavaScript 379 94
JavaScript 100 13
Wordwrap a string with ANSI escape codes
Slice a string with ANSI escape codes
Regular expression for matching ANSI escape codes
Detect whether a terminal supports hyperlinks
Strip ANSI escape codes from a string
Check if a string has ANSI escape codes
Get our FREE eBook "10 Programming Tips That Changed Everything" when you subscribe!
No spam. Unsubscribe anytime.