docs.sheetjs.com/tests/cli-pkg.sh

21 lines
461 B
Bash
Raw Normal View History

2024-05-29 05:10:39 +00:00
#!/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-0.20.2/xlsx-0.20.2.tgz exit-on-epipe commander@2
## NOTE: must downgrade to node 18
npx pkg xlsx-cli.js
## NOTE: these steps are for darwin-x64
2024-06-25 07:16:41 +00:00
./xlsx-cli-macos pres.numbers