Open juanmirocks opened 1 year ago
Comparison of CLI libraries for JS as of 2023-06-06
Name | Version | Size | node official support | deno official support |
---|---|---|---|---|
yargs | 17.7.2 | 292kB | ✅ | ✅ |
commander.js | 10.0.1 | 174kB | ✅ | ⚠️ |
oclif | 3.9.0 | 166kB | ✅ | ❌ |
For now, I try with oclif
, since it's the leanest, it seems to do everything, and it's actively maintained by salesforce. deno
packaging support is actually not needed and anyway they seem to be working on it.
Current poc CLI: https://github.com/juanmirocks/parcel-reporter-mkpdf/blob/develop/workspaces/mkpdf/src/cli.ts
Goals:
PrintMainInput
Considered CLI JS libraries: