2026-01-22 06:59:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
# https://docs.sheetjs.com/docs/demos/engines/duktape#perl-demo
|
|
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
|
rm -rf sheetjs-duk-perl
|
|
|
|
|
mkdir sheetjs-duk-perl
|
|
|
|
|
cd sheetjs-duk-perl
|
|
|
|
|
|
|
|
|
|
curl -LO https://docs.sheetjs.com/duk/SheetJSDuk.pl
|
|
|
|
|
|
|
|
|
|
curl -LO https://cdn.sheetjs.com/xlsx-0.20.3/package/dist/xlsx.extendscript.js
|
|
|
|
|
curl -LO https://docs.sheetjs.com/pres.xlsx
|
|
|
|
|
|
|
|
|
|
perl SheetJSDuk.pl pres.xlsx; echo $?
|
|
|
|
|
|
2026-03-09 04:32:12 +00:00
|
|
|
npx -y xlsx-cli SheetJSDuk.xlsb
|
|
|
|
|
cat <<EOF
|
|
|
|
|
If the script failed with an error about XS, install dependencies:
|
|
|
|
|
|
|
|
|
|
$ cpan install JavaScript::Duktape::XS
|
|
|
|
|
|
|
|
|
|
This command may need to be run as root:
|
|
|
|
|
|
|
|
|
|
$ sudo cpan install JavaScript::Duktape::XS
|
|
|
|
|
EOF
|