138 packages found
Implementations for the Longest Common Substring algorithm [O(nm) time]
Linear-time string search and comparison algorithms.
Gets the number of occurrences of a string or character in a string.
ES spec-compliant `String.prototype.substr` shim/polyfill/replacement that works as far down as ES3
Merge and sort string index ranges
Utility functions shared by react-highlight-words and react-native-highlight-words
Small, extensible, Angular-style string templating
React component to highlight any text in a text. Best used to highlight search results
Like Javascript's substr, but with wrapping and reversed substrings.
Checks if a string has required substrings at given indexes.
Checks if a string has at least one prohibited substring at a given index.
Extended `indexOf` for specific occurrence time
Subtract strings by coordinates.
A module of trim multibyte string by character width. This will work even if contained Unicode, emoji, and surrogate pairs.
Removes all spaces from a string
Unicode aware string truncation that given a max byte size will truncate the string to or just below that size
Return the part of a string after a specified substring.
Return the part of a string before a specified substring.
Return the part of a string before the last occurrence of a specified substring.
Return the part of a string after the last occurrence of a specified substring.