# @texthill/localstorage

> A store implementation to store the indexes for texthill in localstorage

Latest version **0.3.0** (published 2020-10-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install @texthill/localstorage
pnpm add @texthill/localstorage
yarn add @texthill/localstorage
bun add @texthill/localstorage
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2020-10-24 |
| First published | 2020-10-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 68.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Joris Hermans |
| Maintainers | jorishermans |
| Keywords | search engine, full-text, nlp |

## Links

- npm: https://www.npmjs.com/package/@texthill/localstorage
- Homepage: https://github.com/jorishermans/texthill
- Issues: https://github.com/jorishermans/texthill/issues
- npm.io page: https://npm.io/package/@texthill/localstorage

## Dependencies (1)

- [@texthill/core](https://npm.io/package/@texthill/core.md) ^0.3.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.3.0 (latest) — 2020-10-24
- 0.2.5 — 2020-10-19
- 0.2.4 — 2020-10-19
- 0.2.1 — 2020-10-18
- 0.2.0 — 2020-10-17

## README

## 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.
```typescript
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. 
```typescript
const bh = new TextHill(new LocalStorageStore());
bh.removeDoc("hello world").then(_ => console.log('succesfully removed'))
```

---
_Source: https://npm.io/package/@texthill/localstorage · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
