Search results
6000 packages found
Get the visual width of a string - the number of columns required to display it
Wordwrap a string with ANSI escape codes
ANSI escape codes for manipulating the terminal
fast and safe way to escape and unescape &<>'" chars
Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
Strip ANSI escape codes from a string
ANSI escape codes for styling strings in the terminal
Slice a string with ANSI escape codes
Escape RegExp special characters
A JavaScript ANSI color/style management. ANSI parsing. ANSI to CSS. Small, clean, no dependencies.
- ANSI
- ansi to css
- code
- codes
- color
- colors
- text
- command-line
- command line
- sequence
- control
- formatting
- cli
- shell
- View more
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Serialize (encode) HTML character references
ANSI escape codes for some terminal swag
Regular expression for matching ANSI escape codes
Sanitize a string for use as a filename
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
A string manipulation toolbox, featuring a string formatter (inspired by sprintf), a variable inspector (output featuring ANSI colors and HTML) and various escape functions (shell argument, regexp, html, etc).
Quote a string for safe use as a shell argument. Strips null characters.
micromark utility to decode markdown strings