Truncate a string to a specified length.
Truncate a string in the middle to a specified length.
Round a double-precision floating-point number toward zero.
Truncate a string to a specific width in the terminal
Truncate string to given length in bytes
The lodash method `_.truncate` exported as a module.
Truncate a semver version: `1.2.3` → `1.2.0`
Insert supplied variable values into a format string.
Test if a value is a string.
Escape a regular expression string or pattern.
Tokenize a string into an array of string parts and format identifier objects.
Generate string from a token array by interpolating values.
Replace search occurrences with a replacement string.
Regular expression for matching semver versions
Allocate a buffer containing a provided string.
Test if a value is a regular expression string.
Convert a string to lowercase.
Truncate a string to a specified length.
Create a regular expression from a regular expression string.
Unicode aware string truncation that given a max byte size will truncate the string to or just below that size
A tiny function for truncating a string that may contain ANSI escape sequences.
Convert a string to lowercase.
Truncate a JSON string
Truncate HTML and Keep Tags