text-tree

Simple data structure and algorithms for use in tries, suffix trees and the like.

npm install text-tree
1 downloads in the last week
4 downloads in the last month

textTree

Simple data structure and algorithms for use in tries, suffix trees and the like.

Getting Started

Install the module with: npm install textTree

var textTree = require('text-tree');
var trie = new textTree.trie();
trie.insert('hello world');
trie.insert('hi');
trie.insert('world');
trie.insert('wonderful');
trie.insert('wicked');
trie.autoComplete('wo'); // ['wonderful', 'world']

```javascript // Alternatively if you are using client side javascript

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

License

Copyright (c) 2013 Thomas Holloway
Licensed under the MIT license.

npm loves you