# @metacorp/html-trie

> Blazing fast,

Latest version **0.1.2** (published 2017-12-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @metacorp/html-trie
pnpm add @metacorp/html-trie
yarn add @metacorp/html-trie
bun add @metacorp/html-trie
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-12-08 |
| First published | 2017-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Léopold Szabatura |
| Maintainers | metacorp |
| Keywords | search, trie, fast, light |

## Links

- npm: https://www.npmjs.com/package/@metacorp/html-trie
- Repository: https://github.com/MetaCorp/html-trie
- Homepage: https://github.com/MetaCorp/html-trie#readme
- Issues: https://github.com/MetaCorp/html-trie/issues
- npm.io page: https://npm.io/package/@metacorp/html-trie

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 0.1.2 (latest) — 2017-12-08
- 0.1.1 — 2017-12-08
- 0.1.0 — 2017-12-08
- 0.0.5 — 2017-12-07
- 0.0.4 — 2017-12-07
- 0.0.3 — 2017-12-07
- 0.0.2 — 2017-12-07
- 0.0.1 — 2017-12-07

## README

# Html Trie
Html binding for [Trie](https://github.com/MetaCorp/trie)

[![Build Status](https://travis-ci.org/MetaCorp/html-trie.svg?branch=master)](https://travis-ci.org/MetaCorp/html-trie)

### Installation

NPM

```sh
npm install @metacorp/html-trie @metacorp/trie
```

CDN

```html
<script src="https://unpkg.com/@metacorp/trie"></script>
<script src="https://unpkg.com/@metacorp/trie-html"></script>
```

### Usage

Initialize Trie with an array of data.

```js
const htmlTrie = new HtmlTrie(Trie, ['Apple', 'Lemon', 'Orange', 'Tomato'])
```

Now bind an input with `searchBox`

```js
htmlTrie.searchBox({
  container: document.getElementById('searchBox')
})
```

And an result element with `hits`

```js
htmlTrie.hits({
  container: document.getElementById('hits')
})
```

### Configuration

```js
// Don't preprocess at all
HtmlTrie.config.hitClassName = 'result-item'

```

### License

Licensed under the [MIT License](https://github.com/MetaCorp/trie/blob/master/LICENSE)

Copyright (c) Meta l.szabatura@gmail.com

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