A JavaScript library for searching a large array of strings in a case-invariant fashion using any number of wildcard markers.
This package was written in support of wordco.de (source).
import wildcardTree from 'wildcard-tree'
const items = ['pulled', 'from', 'dictionary'];
const tree = wildcardTree(items);
// Finds six-letter words starting with 'pu'
const firstResult = tree.find('pu....');
// Finds all three-letter words
const secondResult = tree.find('...');
// Finds four-letter words starting with 'a' and ending with 'l'
const thirdResult = tree.find('a..l');
Be sure to uptick "version"
in package.json
by one patch.