Libsearch: Simple index-free full-text look for JavaScript

0
4
Libsearch: Simple index-free full-text look for JavaScript

libsearch

npm libsearch
TypeScript types
Construct Status

Basic, index-free text look for JavaScript, utilized throughout my individual tasks like YC Vibe Check linus.zone/ entrand my individual software. Check out the annotated source to comprehend how it works under the hood.

The API

Let’s start with some fast examples:

More officially, libsearch exposes a single API, the search function. This function takes 2 needed arguments and 2 optional arguments:

auto” data-snippet-clipboard-copy-content=”function search( items: T[]query: string, by?: (it: T) =>

LEAVE A REPLY

Please enter your comment!
Please enter your name here