docs.sheetjs.com/tests/bigdata/stream-nodejs.sh

24 lines
558 B
Bash
Raw Permalink Normal View History

2024-07-01 03:59:01 +00:00
#!/bin/bash
# https://docs.sheetjs.com/docs/demos/bigdata/stream#nodejs
2025-04-25 04:43:54 +00:00
. ~/.bashrc ## This is apparently needed in macos
2024-07-01 03:59:01 +00:00
cd /tmp
rm -rf sheetjs-stream
mkdir sheetjs-stream
cd sheetjs-stream
2024-07-18 22:19:02 +00:00
npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
2024-07-01 03:59:01 +00:00
curl -LO https://docs.sheetjs.com/stream/SheetJSNodeJStream.js
curl -LO https://docs.sheetjs.com/pres.xlsx
2025-04-25 04:43:54 +00:00
# this version uses `nvm` to cycle through node versions
2024-07-01 03:59:01 +00:00
for n in 0.12 4 6 8 10 12 14 16 18 20 22; do
2025-04-25 04:43:54 +00:00
#sudo n $n
nvm use $n
2024-07-01 03:59:01 +00:00
node --version
node SheetJSNodeJStream.js pres.xlsx
done