0.3.0 • Published 4 years ago

@texthill/localstorage v0.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

TextHill localstorage

A search engine written in typescript, can be used in the browser, with node.js and deno.

Look at this example below to get you started.

const bh = new TextHill(new LocalStorageStore());
const feed = async () => {
    await bh.feedDoc("hello world", "some hello world for feeding");

    const results = await bh.search("feeding"); 
}

Or remove the document from the index.

const bh = new TextHill(new LocalStorageStore());
bh.removeDoc("hello world").then(_ => console.log('succesfully removed'))
0.3.0

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago