Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uiur/fuzzysearch-highlight
Highlight fuzzy matched text
https://github.com/uiur/fuzzysearch-highlight
Last synced: 3 months ago
JSON representation
Highlight fuzzy matched text
- Host: GitHub
- URL: https://github.com/uiur/fuzzysearch-highlight
- Owner: uiur
- License: isc
- Created: 2015-05-22T08:07:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-06T23:56:54.000Z (about 7 years ago)
- Last Synced: 2024-10-02T15:47:52.481Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fuzzysearch-highlight
[![Build Status](https://travis-ci.org/uiureo/fuzzysearch-highlight.svg?branch=master)](https://travis-ci.org/uiureo/fuzzysearch-highlight)Highlight fuzzy matched text with html.
This module is intended to be used with a module like [fuzzysearch](https://github.com/bevacqua/fuzzysearch).
```js
var highlight = require('fuzzysearch-highlight')highlight('tqb', 'The quick brown fox')
//=> 'The quick brown fox'highlight('quick', 'The quick brown fox', { tag: 'em' }),
//=> 'The quick brown fox'
```## License
ISC