@anscho/hive
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

Hive

Hive provides simple tools built on minimist to help nest commands within a CLI.

Testing

You can test Hive using the example:

> 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

Readme

Keywords

Package Sidebar

Install

npm i @anscho/hive

Weekly Downloads

1

Version

1.3.1

License

MIT

Unpacked Size

10.5 kB

Total Files

19

Last publish

Collaborators

  • anscho