Easily add ANSI colors to your text and symbols in the terminal. A faster drop-in replacement for chalk, kleur and turbocolor (without the dependencies and rendering bugs).
ES2015 `String#codePointAt()` ponyfill
Get the shortest leading whitespace from lines in a string
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Similar to String#trim() but removes only newlines
Safely remove repeating whitespace from HTML text.
Iterator over lines in a string
parses number and unit, '20px' into [20, 'px']
Returns the first index at which a given element can be found.
Convert a string into a stream (streams2)
Regular expression matching for URL's. Maintained, safe, and browser-friendly version of url-regex. Resolves CVE-2020-7661. Works in Node v10.12.0+ and browsers.
Split lines into an array of lines
3x as fast as `is-whitespace` and `whitespace-regex` thanks to `is-string-blank`. This package is a simple function that accepts an argument and returns `true` if it is a string AND it is not blank. Supports Node and Browser environments.
Terminal string styling done right
Determines whether a string ends with the characters of another string.
ES spec-compliant String.prototype.padStart shim.
Check if a String/Buffer is TTF
Check if a String/Buffer/ArrayBuffer is OTF
Converts the given value to a string.