Bun
Bun is a JavaScript runtime powered by JavaScriptCore.
Bun support is considered experimental.
Great open source software grows with user tests and reports. Any issues should be reported to the SheetJS project for further diagnosis.
Each standalone release script is available at https://cdn.sheetjs.com/.
https://cdn.sheetjs.com/xlsx-0.18.10/package/xlsx.mjs is the URL for 0.18.10
After downloading the script, it can be directly imported:
import * as XLSX from './xlsx.mjs';
XLS Support
If XLS support is required, cpexcel.full.mjs
must be manually imported.
https://cdn.sheetjs.com/xlsx-0.18.10/package/dist/cpexcel.full.mjs is the URL for 0.18.10
/* load the codepage support library for extended support with older formats */
import * as cptable from './cpexcel.full.mjs';
XLSX.set_cptable(cptable);