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
|
|
|
|
|
2024-10-31 04:25:02 +00:00
|
|
|
for n in {2..15}; do
|
2024-06-25 07:16:41 +00:00
|
|
|
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
|