trim-repeated
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Check if a character is alphabetical
Check if a character is decimal
Check if a character is alphanumerical
Check if a character is hexadecimal
Check if a character is a whitespace character
Check if a character is a word character
Count how often a character (or substring) is used in a string
Convert HTML entities to HTML characters, e.g. `>` converts to `>`.
Put a little spinner on process.stderr, as unobtrusively as possible.
Colorized string diff ideal for text/code that spans through multiple lines
Normalize the newline characters in a string to `\n`
Colorizes unified diff output
Get a UTF-16-encoded code point number of a character
Count the lines in a string, works with windows carriage returns or unix style newlines.
Get the code points of each character in the string
Return a random character.
Micro-library to split a DOM element's words & chars into elements populated with CSS vars.
Get the char width/height proportions in different terminal emulators.
Detect and Normalize the newline characters