Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trinly01/puzzy-search
Add google-like search and auto suggest (did you mean...) misspelled words fuzzy search suggest similar words
https://github.com/trinly01/puzzy-search
Last synced: 3 months ago
JSON representation
Add google-like search and auto suggest (did you mean...) misspelled words fuzzy search suggest similar words
- Host: GitHub
- URL: https://github.com/trinly01/puzzy-search
- Owner: trinly01
- Created: 2019-10-21T02:48:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T23:06:49.000Z (about 2 years ago)
- Last Synced: 2024-10-02T07:37:40.114Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.22 MB
- Stars: 12
- Watchers: 1
- Forks: 2
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-pinoy-made - GitHub
README
[![npm version](https://badge.fury.io/js/puzzy-search.svg)](https://badge.fury.io/js/puzzy-search)
# puzzy-search
Add google-like `search` and `auto suggest` (did you mean...)- [x] misspelled words
- [x] fuzzy search
- [x] suggest similar words
> **Join and support our Community**
> Web and Mobile Developers PH
> [ [Facebook Page](https://fb.com/webmobile.ph) | [Group](https://fb.com/groups/webmobile.ph/) ]## Install
```
npm install puzzy-search
```## CDN
```html
```## Usage
```js
const { search, suggest, regex } = require('puzzy-search')
// const { search, suggest, regex } = puzzySearch // for CDNconst 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](https://fb.com/webmobile.ph) | [Group](https://fb.com/groups/webmobile.ph/) ]## License
ISC © 2019 Trinmar Boado
MIT © 2019 Ray Foss
MIT © 2017 Arve Seljebu