19 lines
458 B
Bash
19 lines
458 B
Bash
|
|
#!/bin/bash
|
||
|
|
# https://docs.sheetjs.com/docs/demos/data/sqlite/#bunjs-demo
|
||
|
|
|
||
|
|
cd /tmp
|
||
|
|
rm -rf sheetjs-sqlite-bun
|
||
|
|
mkdir sheetjs-sqlite-bun
|
||
|
|
cd sheetjs-sqlite-bun
|
||
|
|
bun init -y
|
||
|
|
|
||
|
|
curl -L -O https://docs.sheetjs.com/sqlite/chinook.sql
|
||
|
|
sqlite3 chinook.db ".read chinook.sql"
|
||
|
|
|
||
|
|
curl -L -O https://docs.sheetjs.com/sqlite/SheetJSQLiteBun.mjs
|
||
|
|
|
||
|
|
bun install https://cdn.sheetjs.com/xlsx-latest/xlsx-latest.tgz
|
||
|
|
|
||
|
|
bun run SheetJSQLiteBun.mjs
|
||
|
|
|
||
|
|
npx xlsx-cli -l SheetJSQLiteBun.xlsx
|