Searchbox
🌐 stuchl4n3k.net | 💻 stuchl4n3k | 🐦 @stuchl4n3k
Text input augmented with Lexer magic✨ to support advanced search features. Searchbox supports multiple user-defined keywords (filters, variables) and also NOT operator.
Features
Usage
import * as searchbox from '@webkitty/searchbox';
const inputText = 'Never take title:raisins from -author:rabbits';
const keywords = ['title', 'author'];
const formula = searchbox.parse(inputText, {keywords});
Please note that only case-sensitive keyword matching is supported.
📝 License
Copyright © 2019 stuchl4n3k.
This project is MIT licensed.
