rishabh3112 / trie

Promise Based Trie implementation in Node JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trie

codecov trie npm (scoped)

Promise based Trie Store implementation.

Installation

npm install @rishabh3112/trie

Usage

const store = new TrieStore();

Methods

  • store.add: (key: string, data: Data) => Promise<string>
  • store.delete: (key: string) => Promise<string>
  • store.at: (key: string) => Promise<Result<Data>>
  • store.search: (query: string, limit?: number) => Promise<Result<Data>[]>
  • store.update: (id: string, key: string, data: Data) => Promise<string>

License

MIT

About

Promise Based Trie implementation in Node JS

License:MIT License


Languages

Language:TypeScript 98.9%Language:JavaScript 1.1%