1.0.0 • Published 4 years ago

@mya-zaki/advanced-search v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

advanced-search

CircleCI

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);