docs.sheetjs.com/tests/bigdata/stream-nodejs.sh
2025-04-25 00:43:54 -04:00

24 lines
558 B
Bash
Executable File

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