Fast and easy searching inside a page
Now you can decide you matching function!
holmes({
shouldShow: (element: string, input: string) => boolean,
});
This allows you to do more complex matching, thanks @chimane for the idea
💻 you can now call h.search()
as a way to execute the search. This can be used in after with h.setInput()
to refine the items.
Save the kittens by having a smaller file size of about 100 bytes (pre-gzip) or 40 bytes after gee zipping, pretty cool huh 😎
Some fixes in the error messages found through running more linters 😄
fix: publish es module as js/holmes.es.js (wasn’t published in last release)
Adds es2015 module target 🙌
https://haroen.me/holmes/module-demo.html for an in-browser demo if yours is supported
importing can be done with webpack 2 or rollup (rollup-plugin-node-resolve)
adds support for <40 version of Firefox which doesn't have String.prototype.includes
Adds install.json
to install via eager soon 👍
options.input
will actually give back a HTMLElement to type in.placeholder
shows at the right moment again