@mya-zaki/advanced-search
v1.0.0
Published
Parse search words.
Downloads
4
Readme
advanced-search
Parse search words.
Execute examples
npm run examples
search query syntax
Separator is Half-width space or Full-width space.
- OR
- Any of these words.
- -
- None of these words.
- " "
- Exact word or phrase.
- ( )
- Grouping this query.
Usage
import AdvancedSearch from "@mya-zaki/advanced-search";
// query = 'foo bar OR baz'
const result = AdvancedSearch.parse(query);