0.1.0 • Published 2 years ago

fuzzy-rx v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
0.1.0

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago