forked from sheetjs/docs.sheetjs.com
21 lines
516 B
Bash
21 lines
516 B
Bash
|
#!/bin/bash
|
||
|
# https://docs.sheetjs.com/docs/demos/net/dom#cheeriojs
|
||
|
|
||
|
cd /tmp
|
||
|
rm -rf sheetjs-cheeriojs
|
||
|
mkdir sheetjs-cheeriojs
|
||
|
cd sheetjs-cheeriojs
|
||
|
|
||
|
npm i --save https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
|
||
|
|
||
|
curl -LO https://docs.sheetjs.com/dom/SheetJSCheerio.js
|
||
|
curl -LO https://docs.sheetjs.com/dom/SheetJSTable.html
|
||
|
|
||
|
for n in 1.0.0 1.0.0-rc.12; do
|
||
|
rm -f SheetJSCheerio.xlsx
|
||
|
npm i --save cheerio@$n
|
||
|
npm ls | grep cheerio
|
||
|
node SheetJSCheerio.js
|
||
|
npx -y xlsx-cli SheetJSCheerio.xlsx | head -n 3
|
||
|
done
|