Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/regisrex/string-hunt
📦 recursive text searching algo. for small scale data
https://github.com/regisrex/string-hunt
Last synced: 6 days ago
JSON representation
📦 recursive text searching algo. for small scale data
- Host: GitHub
- URL: https://github.com/regisrex/string-hunt
- Owner: regisrex
- License: mit
- Created: 2023-09-12T17:33:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-07T15:28:49.000Z (9 months ago)
- Last Synced: 2024-11-07T05:52:29.617Z (8 days ago)
- Language: TypeScript
- Homepage: https://string-hunt.vercel.app/
- Size: 228 KB
- Stars: 15
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
## 📦 string-hunt
Fast text searching algorithms for small scale data[![ci](https://github.com/regisrex/string-hunt/actions/workflows/ci.yml/badge.svg)](https://github.com/regisrex/string-hunt/actions/workflows/ci.yml)
```bash
$ yarn add string-hunt
```## Usage
```Javascript
const search = require('string-hunt')const data = [
{
name : "Cedrick",
age : 20
},
{
name : "Marrick",
age : 10
}
](() => {
const results = search(data.map(datum => JSON.stringify(datum)), 'rick0')
console.log(results.length) // 2
})()```
## Contributing
Contributors are welcomed, you can contribute by opening an issue or making a pull request (which is better 😀).## Maintainers
It is maintained by [@pacifiquem](https://github.com/pacifiquem) and [@regisrex](https://github.com/regisrex)## Licence
This project is under [MIT Licence](./LICENCE)