highlight-words

Split a piece text into multiple chunks based on a search query, allowing you to highlight the matches.

Browse on unpkg