fuzzy-rx
v0.1.0
Published
Fuzzy searching implemented as escaped and compiled regexp
Downloads
5
Maintainers
Readme
fuzzy-rx
Fuzzy searching implemented as escaped and compiled regexp.
Inpsired by much prior art, such as Ben Ripkens' bripkens/fuzzy.js
Install
> npm install fuzzy-rx
Use
import as_fuzzy_rx from 'fuzzy-rx'
let rx_search = as_fuzzy_rx('hello')
let txt_one = 'I am Happy \n to be here \n totally oblivious'
rx_search.test(txt_one) // true
let txt_two = 'does not match presented rx_search'
rx_search.test(txt_two) // false