Search results
1000+ packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
ANSI escape codes for styling strings in the terminal
Strip ANSI escape codes from a string
Regular expression for matching ANSI escape codes
Get the visual width of a string - the number of columns required to display it
Wordwrap a string with ANSI escape codes
Escape RegExp special characters
Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data.
Slice a string with ANSI escape codes
ANSI escape codes for manipulating the terminal
ANSI escape codes for some terminal swag
Escape string for use in HTML
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
fast and safe way to escape and unescape &<>'" chars
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
Create clickable links in the terminal
Get the visual width of the widest line in a string - the number of columns required to display it
Easy way to split a string on a given character unless it's quoted or escaped.
Check if a string has ANSI escape codes
Escape a string for use in HTML or the inverse
- escape
- unescape
- html
- entity
- entities
- escaping
- sanitize
- sanitization
- utility
- template
- attribute
- value
- interpolate
- xss
- View more
Serialize (encode) HTML character references