# node-trie

> node-trie =========

Latest version **0.0.1** (published 2014-03-24) · 0 weekly downloads

## Install

```sh
npm install node-trie
pnpm add node-trie
yarn add node-trie
bun add node-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.0.1 |
| Published | 2014-03-24 |
| First published | 2014-03-24 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jifeng.zjd |

## Links

- npm: https://www.npmjs.com/package/node-trie
- npm.io page: https://npm.io/package/node-trie

## Recent versions

- 0.0.1 (latest) — 2014-03-24

## README

node-trie
=========

A simple Trie implementation for Node.js

## install

```bash
npm install node-trie
```

## usage

```js
var Trie = require('node-trie');

var trie = Trie();

var letters = [
  'hello',
  'world',
  'help',
  '中国'
];

for(var i = 0; i < letters.length; i++) {
  trie.add(letters[i], letters[i]);
}

trie.get('hello'); //[ 'hello' ]

trie.get('h'); //[ 'hello', 'help' ]
trie.get('中'); //[ '中国' ]

```

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