chalk
Terminal string styling done right
Terminal string styling done right
ES2015 `String#codePointAt()` ponyfill
Get the system locale
Repeat a string - fast
Check if a string or buffer is SVG
Get the shortest leading whitespace from lines in a string
Strip a substring from the start/end of a string
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Similar to String#trim() but removes only whitespace on the right
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']
Convert a time string to seconds: '00:22:17' → 1337
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.
Pad each line in a stream
Split lines into an array of lines
Multiline strings in JavaScript