Search results
513 packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
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).
Get the shortest leading whitespace from lines in a string
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Generate string from a token array by interpolating values.
Iterator over lines in a string
Convert between POSIX and Windows paths.
Test if a value is a string.
Insert supplied variable values into a format string.
Test if a value is a regular expression string.
- stdlib
- stdassert
- assertion
- assert
- utils
- util
- utilities
- utility
- isregexp
- regular expression
- regexp
- regex
- regular
- expression
- View more
Convert a string to lowercase.
Replace search occurrences with a replacement string.
Tokenize a string into an array of string parts and format identifier objects.
Similar to String#trim() but removes only newlines
parses number and unit, '20px' into [20, 'px']
Allocate a buffer containing a provided string.
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.
Convert a string into a stream (streams2)
Convert a string to lowercase.
Split lines into an array of lines
Replace search occurrences with a replacement string.
- stdlib
- stdstring
- utilities
- utility
- utils
- util
- base
- string
- str
- search
- replace
- regex
- regular expression
- regexp
- View more