1.0.20 • Published 5 years ago
puzzy-search v1.0.20
puzzy-search
Add google-like search
and auto suggest
(did you mean...)
- misspelled words
- fuzzy search
- suggest similar words
Join and support our Community Web and Mobile Developers PH [ Facebook Page | Group ]
Install
npm install puzzy-search
CDN
<script src="https://unpkg.com/puzzy-search/dist/index.js"></script>
Usage
const { search, suggest, regex } = require('puzzy-search')
// const { search, suggest, regex } = puzzySearch // for CDN
const sentence = 'You want the web server to support four of the most popular programming paradigms.'
const str = 'puppular programmng paradim'
search(str, sentence) // true
suggest(str, sentence) // popular programming paradigm
regex(str) // new RegExp(...puzzy...)
sentence.match(regex(str)) !== null // true
Join and support our Community Web and Mobile Developers PH [ Facebook Page | Group ]
License
ISC © 2019 Trinmar Boado MIT © 2019 Ray Foss MIT © 2017 Arve Seljebu
1.0.20
5 years ago
1.0.19
5 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago