docs.sheetjs.com/tests/dom/cheerio.sh

21 lines
504 B
Bash
Raw Normal View History

2024-10-31 04:25:02 +00:00
#!/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
2026-01-12 08:01:23 +00:00
for n in 1.1.2; do
2024-10-31 04:25:02 +00:00
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