# mtrie

> Use [trie](http://en.wikipedia.org/wiki/Trie) to implement 'search array by the specified prefixed-string'.

Latest version **0.1.0** (published 2020-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install mtrie
pnpm add mtrie
yarn add mtrie
bun add mtrie
```

## 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.0 |
| Published | 2020-02-13 |
| First published | 2020-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.9 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zendo.p |

## Links

- npm: https://www.npmjs.com/package/mtrie
- Repository: https://github.com/jzendo/trie
- Homepage: https://github.com/jzendo/trie#readme
- Issues: https://github.com/jzendo/trie/issues
- npm.io page: https://npm.io/package/mtrie

## Dependencies (1)

- [standard](https://npm.io/package/standard.md) ^14.3.1

## Recent versions

- 0.1.0 (latest) — 2020-02-13

## README

# trie

Use [trie](http://en.wikipedia.org/wiki/Trie) to implement 'search array by the specified prefixed-string'.

```javascript
// Big array
const data = [
  'abc hello',
  'hello world',
  'Wow that'
  // ...
]

// The matching string
const str = 'ab'

// Buid trie tree
const tree = trie.generateTrie(data)

// The matched array
const r = trie.matchString(tree, str)

```

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