Search results
2653 packages found
Strip ANSI escape codes from a string
Wordwrap a string with ANSI escape codes
Get the visual width of a string - the number of columns required to display it
Escape RegExp special characters
ANSI escape codes for styling strings in the terminal
ANSI escape codes for manipulating the terminal
fast and safe way to escape and unescape &<>'" chars
ANSI escape codes for some terminal swag
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Regular expression for matching ANSI escape codes
Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Simple SQL escape and format for MySQL
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
Sanitize a string for use as a filename
Easy way to split a string on a given character unless it's quoted or escaped.
Slice a string with ANSI escape codes
Get the visual width of the widest line in a string - the number of columns required to display it
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).