docs.sheetjs.com/tests/dom-xmldom.sh

21 lines
508 B
Bash
Executable File

#!/bin/bash
# https://docs.sheetjs.com/docs/demos/net/dom#xmldom
cd /tmp
rm -rf sheetjs-xmldom
mkdir sheetjs-xmldom
cd sheetjs-xmldom
npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
curl -LO https://docs.sheetjs.com/dom/SheetJSXMLDOM.js
curl -LO https://docs.sheetjs.com/dom/SheetJSTable.html
for n in 0.8 0.9; do
rm -f SheetJSXMLDOM.xlsx
npm i --save "@xmldom/xmldom@$n"
npm ls | grep "@xmldom/xmldom"
node SheetJSXMLDOM.js
npx -y xlsx-cli SheetJSXMLDOM.xlsx | head -n 3
done