is-fullwidth-code-point
Check if the character represented by a given Unicode code point is fullwidth
Check if the character represented by a given Unicode code point is fullwidth
Easy way to split a string on a given character unless it's quoted or escaped.
POSIX character classes for creating regular expressions.
Strip the final newline character from a string/buffer
Character encoding detector
Detect the dominant newline character of a string
Get the visual width of the widest line in a string - the number of columns required to display it
Strip the final newline character from a string or Uint8Array
Parse HTML character references
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
A regex to match any full character, considering weird character ranges.
Check if a character is alphabetical
Check if a character is decimal
Check if a character is alphanumerical
List of legacy HTML named character references that don’t need a trailing semicolon
Check if a character is hexadecimal
Map of named character references
Map of invalid numeric character references to their replacements, according to HTML
Check if a character is a whitespace character
Check if a character is a word character