#!/bin/bash
# https://docs.sheetjs.com/docs/demos/cli/pkg
cd /tmp
rm -rf sheetjs-pkg
mkdir sheetjs-pkg
cd sheetjs-pkg

curl -o pres.numbers https://docs.sheetjs.com/pres.numbers

curl -o xlsx-cli.js https://docs.sheetjs.com/cli/xlsx-cli.js

npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz exit-on-epipe commander@2

## NOTE: must downgrade to node 18

npx -y pkg xlsx-cli.js

## NOTE: these steps are for darwin

./xlsx-cli-macos pres.numbers