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

22 lines
492 B
Bash
Raw Normal View History

2024-07-01 03:59:01 +00:00
#!/bin/bash
# https://docs.sheetjs.com/docs/demos/bigdata/stream#nodejs
cd /tmp
rm -rf sheetjs-stream
mkdir sheetjs-stream
cd sheetjs-stream
npm i --save https://cdn.sheetjs.com/xlsx-0.20.2/xlsx-0.20.2.tgz
curl -LO https://docs.sheetjs.com/stream/SheetJSNodeJStream.js
curl -LO https://docs.sheetjs.com/pres.xlsx
# this version uses `n` to cycle through node versions
for n in 0.12 4 6 8 10 12 14 16 18 20 22; do
sudo n $n
node --version
node SheetJSNodeJStream.js pres.xlsx
done