0.0.4-pre.1 • Published 9 months ago
@hiogawa/tiny-cli v0.0.4-pre.1
tiny-cli
simple type-safe command line parsing library
features
- type-safety/inference of command handler function
- automatic help generation
- variadic arguments
- sub commands
- zero dependencies
- ability to reuse zod schema
z.ZodType<T>
not supported
- short form option e.g.
-h
- command option alias
- transform option key from kebab-case to camelCase
- special arguments e.g.
--
examples
- https://github.com/hi-ogawa/js-utils/blob/cbc39056a8221463f1b90cf61c411f1037f17ab4/packages/tiny-jwt/src/cli-node.ts
- https://github.com/hi-ogawa/isort-ts/blob/dc95b781cde4b5c7998fc69219fb11eaf055a339/src/cli.ts
- https://github.com/hi-ogawa/ytsub-v3/blob/08e3aed9a8be3472c7b4d0f61a978e546c75eeb8/app/misc/cli.ts
- see also various tests
./src/*.test.ts
0.0.4-pre.1
9 months ago
0.0.4-pre.0
9 months ago
0.0.3
9 months ago
0.0.3-pre.1
9 months ago
0.0.3-pre.0
9 months ago
0.0.2
9 months ago
0.0.1
9 months ago
0.0.1-pre.10
9 months ago
0.0.1-pre.9
9 months ago
0.0.1-pre.8
9 months ago
0.0.1-pre.7
9 months ago
0.0.1-pre.6
9 months ago
0.0.1-pre.5
9 months ago
0.0.1-pre.4
9 months ago
0.0.1-pre.3
9 months ago
0.0.1-pre.2
9 months ago
0.0.1-pre.1
9 months ago
0.0.1-pre.0
9 months ago
0.0.0
9 months ago