Search results
511 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
Similar to String#trim() but removes only newlines
Iterator over lines in a string
Generate string from a token array by interpolating values.
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.
Tokenize a string into an array of string parts and format identifier objects.
Convert between POSIX and Windows paths.
Test if a value is a string.
Replace search occurrences with a replacement string.
Insert supplied variable values into a format string.
Allocate a buffer containing a provided string.
parses number and unit, '20px' into [20, 'px']
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.
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.
Split lines into an array of lines
Safely remove repeating whitespace from HTML text.