# @anscho/hive

> Library that supports constructing CLIs with nested command structures

Latest version **1.3.1** (published 2023-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @anscho/hive
pnpm add @anscho/hive
yarn add @anscho/hive
bun add @anscho/hive
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2023-01-21 |
| First published | 2019-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 10.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrew Schoenfeld |
| Maintainers | anscho |
| Keywords | CLI |

## Links

- npm: https://www.npmjs.com/package/@anscho/hive
- npm.io page: https://npm.io/package/@anscho/hive

## Dependencies (1)

- [minimist](https://npm.io/package/minimist.md) ^1.2.7

## Recent versions

- 1.3.1 (latest) — 2023-01-21
- 1.3.0 — 2023-01-16
- 1.2.2 — 2019-10-01
- 1.2.1 — 2019-08-27
- 1.2.0 — 2019-08-27
- 1.1.0 — 2019-08-27
- 1.0.0 — 2019-08-27

## README

# Hive

Hive provides simple tools built on [minimist](https://github.com/substack/minimist) to help nest commands within a CLI.

## Testing

You can test Hive using the [example](example/example.js):
```
> node example/example.js
Usage: example [OPTIONS] COMMAND [ARGS]...

  Hive example CLI

Commands:
  one  First command
  two  Second command

> node example/example.js one
Usage: one [OPTIONS] COMMAND [ARGS]...

  First command

Commands:
  a    Another command
  foo  Classic foobar

> node example/example.js one foo -h
Usage: foo [-b --baz]

  Classic foobar

> node example/example.js one foo
bar

> node example/example.js one foo -b
baz
```

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