Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Utilities for working with text
default
Utility functions for working with text.
Finds the most similar string from an array of strings.
Takes a string and generates a comparator function to determine which of two strings is more similar to the given one.
Calculates the Levenshtein distance between two strings.
Converts a string into camelCase.
Converts a string into kebab-case.
Converts a string into PascalCase.
Converts a string into snake_case.
Sorts a string-array by similarity to a given string.
Options for wordSimilaritySort.
Finds the most similar string from an array of strings.
Takes a string and generates a comparator function to determine which of two strings is more similar to the given one.
Calculates the Levenshtein distance between two strings.
Converts a string into camelCase.
Converts a string into kebab-case.
Converts a string into PascalCase.
Converts a string into snake_case.
Removes indentation from multiline strings.
Gets the longest common prefix of an array of strings.
Performs a Unicode-aware string reversal.
A regular expression for stripping ASCII diacritics (but not other diacritics) from slugs.
A regular expression for stripping diacritics from slugs.
A regular expression for stripping non-ASCII characters from slugs.
A regular expression for stripping non-word characters from slugs.
Converts a string into CONSTANT_CASE (also known as SCREAMING_SNAKE_CASE).
Options for toSentenceCase
Converts a string into Sentence Case.
A filter function or array of stop words to exclude them from title casing, or multiple filter functions and stop word arrays to combine for filtering.
A function that filters words in the string. If a word returns true from this function, it will not be title-cased.
Converts a string into Title Case.
The case for the remaining characters in the string
Trims all instances of the specified pattern at the start and end of the string.
Trims all instances of the specified pattern at the end of the string.
A pattern that can be used to trim characters from an input string.
Trims all instances of the specified pattern at the start of the string.
Sorts a string-array by similarity to a given string.
Options for wordSimilaritySort.