Skip to content

Add google-like search and auto suggest (did you mean...) misspelled words fuzzy search suggest similar words

Notifications You must be signed in to change notification settings

trinly01/puzzy-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version

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

About

Add google-like search and auto suggest (did you mean...) misspelled words fuzzy search suggest similar words

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published