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

21 lines
510 B
Bash
Raw Normal View History

2024-06-25 07:16:41 +00:00
#!/bin/bash
# https://docs.sheetjs.com/docs/demos/net/dom#happydom
cd /tmp
rm -rf sheetjs-happydom
mkdir sheetjs-happydom
cd sheetjs-happydom
2024-07-18 22:19:02 +00:00
npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
2024-06-25 07:16:41 +00:00
curl -LO https://docs.sheetjs.com/dom/SheetJSHappyDOM.js
curl -LO https://docs.sheetjs.com/dom/SheetJSTable.html
for n in {2..14}; do
rm -f SheetJSHappyDOM.xlsx
npm i --save happy-dom@$n
npm ls | grep happy-dom
node SheetJSHappyDOM.js
npx -y xlsx-cli SheetJSHappyDOM.xlsx | head -n 3
done