DuoBadge command line tool

Needs Node 22 or later. No install, no dependencies.

  node duobadge.mjs activate <your Studio code>
  node duobadge.mjs render capture.png --style passport --out shots
  node duobadge.mjs check shots/*.png
  node duobadge.mjs scan ./MyApp
  node duobadge.mjs sizes

Until a Studio code is activated, renders carry a watermark. The code is stored in
~/.config/duobadge/code (set DUOBADGE_CONFIG_DIR to keep it somewhere else). On a build
machine (GitHub Actions, Xcode Cloud), set the DUOBADGE_CODE environment variable to the
code instead of running activate.
