# @henryscheible/trieclient

> The client is a Node package hosted on the npm registry, so it can be installed with the following command: ```shell $ npm i -g @henryscheible/trieclient@1.1.0 ``` ## Usage ### Help Usage information can be shown by invoking the `--help` option: ```shel

Latest version **1.2.0** (published 2022-04-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install @henryscheible/trieclient
pnpm add @henryscheible/trieclient
yarn add @henryscheible/trieclient
bun add @henryscheible/trieclient
```

Provides the command `triecli`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2022-04-29 |
| First published | 2022-04-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 17.1 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | henryscheible |

## Links

- npm: https://www.npmjs.com/package/@henryscheible/trieclient
- Repository: https://github.com/henryscheible/SlingshotGlobalTrie
- Homepage: https://github.com/henryscheible/SlingshotGlobalTrie#readme
- Issues: https://github.com/henryscheible/SlingshotGlobalTrie/issues
- npm.io page: https://npm.io/package/@henryscheible/trieclient

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.27.2
- [yargs](https://npm.io/package/yargs.md) ^17.4.1
- [moxios](https://npm.io/package/moxios.md) ^0.4.0

## Recent versions

- 1.2.0 (latest) — 2022-04-29
- 1.1.0 — 2022-04-29
- 1.0.0 — 2022-04-29

## README

# Trie Client
## Installation
The client is a Node package hosted on the npm registry, so it can be installed with the following command:
```shell
$ npm i -g @henryscheible/trieclient@1.1.0
```
## Usage
### Help 
Usage information  can be shown by invoking the `--help` option:
```shell
$ triecli --help
triecli [command]

Commands:
  triecli put <keyword>           add a keyword to the trie
  triecli delete <keyword>        delete a keyword from the trie
  triecli autocomplete <keyword>  find keywords in trie that start with
                                  <keyword>
  triecli list                    list all keywords in the trie
  triecli find <keyword>          check whether <keyword> is present in trie

Options:
  --version  Show version number                                       [boolean]
  --url      the api url to connect to
                                    [string] [default: "http://localhost:8000/"]
  --help     Show help                                                 [boolean]
```

### Put Keyword
```shell
$ triecli put <keyword>
Successfully added <keyword> to trie
```

### Find Keyword
```shell
$ triecli find <keyword>
```

This command will print `true` if the keyword is found and `false` if the keyword is not found

### Delete Keyword
```shell
$ triecli delete <keyword>
```

### Autocomplete Keyword
```shell
$ triecli autocomplete <prefix>
```
This command will print out all keywords starting with `<prefix>`, each on their own line. Example:
```shell
$ triecli autocomplete h
hello
hungry
```

### Display Trie
```shell
$ triecli list
```
This command will print out all keywords in a trie one line at a time.

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