fuzzysearch-highlight
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/fuzzysearch-highlight package

1.0.3 • Public • Published

fuzzysearch-highlight

Build Status

Highlight fuzzy matched text with html.

This module is intended to be used with a module like fuzzysearch.

var highlight = require('fuzzysearch-highlight')
 
highlight('tqb', 'The quick brown fox')
//=> '<strong>T</strong>he <strong>q</strong>uick <strong>b</strong>rown fox'
 
highlight('quick', 'The quick brown fox', { tag: 'em' }),
//=> 'The <em>quick</em> brown fox'

License

ISC

Readme

Keywords

none

Package Sidebar

Install

npm i fuzzysearch-highlight

Weekly Downloads

360

Version

1.0.3

License

MIT

Last publish

Collaborators

  • uiureo