1.0.3 • Published 3 years ago

@ezzhang8/trie-cli v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Trie (CLI)

The command line interface for the trie.

Installation

This CLI can be installed by running npm install -g @ezzhang8/trie-cli

Usage

A list of commands will be below:

trie-cli -V Version number trie-cli -h Help trie-cli words get Gets entire trie as a JSON string trie-cli words get --pp Gets entire trie and pretty prints it so only letters appear in the console trie-cli words add Adds a word to the trie trie-cli words delete Deletes a word from the trie trie-cli find Determines whether a specified word is in the trie trie-cli auto --max=<num> Returns a list of autofill suggestions based on a prefix and a maximum amount of results (default 5)

For more information on these commands, see here for documentation on the API.

Test Commands

There are some test commands included to test the API:

trie-cli test exec --t=<num> Executes one of the ten (1-10) numbered tests by specifying the --t flag. Example: trie-cli test exec --t=3 executes test 3.

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago