UNPKG

kwrd

Version:

+/- Keyword matching tool for sneaker bots

22 lines (20 loc) 751 B
declare type KeywordStr = `+${string}` | `-${string}`; declare class Keyword { readonly value: KeywordStr; static toKeywordStr(word: string): KeywordStr; static from(word: string): Keyword; private static isValid; constructor(value: KeywordStr); isPositive(): boolean; isNegative(): boolean; getValue(): string; } /** * Matches keywords * @param rawKeywords The +/- keyword to match against * @param rawName The name of the product or string to match * @param strict Whether to enable strict mode. Refer to GitHub for strict mode documentation * @returns boolean */ declare function match(rawKeywords: string, rawName: string, strict?: boolean): boolean; export { Keyword, KeywordStr, match as default, match };