7.0.10 • Published 6 months ago

js-match-words v7.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

js-match-words

Give it a piece of text and a search query, and it splits it into chunks separating matches from non-matches, allowing you to highlight the matches, visually or otherwise, in your app.

install

npm i js-match-words

or

yarn add js-match-words

or

pnpm add js-match-words

usage

import { matchWords } from 'js-match-words';

matchWords({
  source: ' abc123aa1cbb2cbb.',
  searchWords: ['a', 'b']
});
7.0.10

6 months ago

7.0.9

6 months ago

7.0.6

6 months ago

7.0.5

6 months ago

7.0.4

6 months ago