juanmirocks / mkpdf

🖨️🎨 CLI, TypeScript API, & build tools plugins to "print" a website (URL/HTML/Markdown) into a PDF, using Google's Chrome & puppeteer
Apache License 2.0
2 stars 0 forks source link

Implement MVP but rich CLI #1

Open juanmirocks opened 1 year ago

juanmirocks commented 1 year ago

Current poc CLI: https://github.com/juanmirocks/parcel-reporter-mkpdf/blob/develop/workspaces/mkpdf/src/cli.ts

Goals:


Considered CLI JS libraries:

juanmirocks commented 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.