Search results
493 packages found
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).
Insert supplied variable values into a format string.
Get the shortest leading whitespace from lines in a string
Test if a value is a string.
Iterator over lines in a string
Replace search occurrences with a replacement string.
Ansi codes, figlet fonts, and ascii art. 100% JS
Terminal string styling done right
Convert between POSIX and Windows paths.
Generate string from a token array by interpolating values.
Tokenize a string into an array of string parts and format identifier objects.
Allocate a buffer containing a provided 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
Replace search occurrences with a replacement string.
- stdlib
- stdstring
- utilities
- utility
- utils
- util
- base
- string
- str
- search
- replace
- regex
- regular expression
- regexp
- View more
Convert a string to lowercase.
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Convert a string to lowercase.
Return the first index at which a given element can be found.
Slugs for Mongoose with history and i18n support (uses speakingurl by default, but you can use any slug library such as limax, slugify, mollusc, or slugme)
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.