Skip to content

Fuzzy searching implemented as escaped and compiled regexp.

License

Notifications You must be signed in to change notification settings

shanewholloway/js-fuzzy-rx

Repository files navigation

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

About

Fuzzy searching implemented as escaped and compiled regexp.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published