docs.sheetjs.com/tests/dom-happydom.sh
2024-07-18 18:19:02 -04:00

21 lines
510 B
Bash
Executable File

#!/bin/bash
# https://docs.sheetjs.com/docs/demos/net/dom#happydom
cd /tmp
rm -rf sheetjs-happydom
mkdir sheetjs-happydom
cd sheetjs-happydom
npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
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