Skip to content

@studnicky/matching-filters

Each plugin owns exactly one filter operation. It validates its untrusted filter value with a composed @studnicky/types predicate, calls one @studnicky/matching primitive, and returns the resulting boolean to FilterEngine.

Install

bash
pnpm add @studnicky/matching-filters

Exports

SymbolPurposeImport path
CosineAtLeastPluginCOSINE_AT_LEAST@studnicky/matching-filters
DamerauLevenshteinAtLeastPluginDAMERAU_LEVENSHTEIN_AT_LEAST@studnicky/matching-filters
JaccardAtLeastPluginJACCARD_AT_LEAST@studnicky/matching-filters
JaroAtLeastPluginJARO_AT_LEAST@studnicky/matching-filters
JaroWinklerAtLeastPluginJARO_WINKLER_AT_LEAST@studnicky/matching-filters
LevenshteinAtLeastPluginLEVENSHTEIN_AT_LEAST@studnicky/matching-filters
NgramAtLeastPluginNGRAM_AT_LEAST@studnicky/matching-filters
SorensenDiceAtLeastPluginSORENSEN_DICE_AT_LEAST@studnicky/matching-filters

Source on GitHub