trie-prefix
A modification/simplification of lyndseybrowning/trie-prefix-tree. Includes case-sensitivity.
Usage
Installation
npm install trie-prefix
Usage Example
const trie = const input = 'The Quick Brown Fox Jumped Over the Lazy Dog'const isCaseSensitive = true const index = input isCaseSensitive
API
index.getPrefix(prefixString)
Gets all results that start with the prefix string.
index.tree()
Gets the raw trie object.
License
The MIT License (MIT) | 2019 Arjun Mehta