Exporting real `.xlsx` spreadsheets (correct types, dates, multiple sheets) without SheetJS/exceljs.
Overview
Write real .xlsx files with zero dependencies and no headless browser — a spreadsheet is just a ZIP of XML, so we build the bytes directly (same trick as @lacspace/pdf). Objects or arrays, correct types incl. real Excel dates, bold headers, column widths and multiple sheets. SheetJS/exceljs are heavy; this is tiny and isomorphic.
Install
$ npm install @lacspace/xlsx
Quick example
@lacspace/xlsxts
jsonToXlsx(rows)
Returns Uint8Array (.xlsx)
Tips
Pass an array of objects; headers, column widths and Excel-native dates are handled for you.
Zero-dependency and isomorphic — safe to import on the server, in the browser, on the edge and in React Native. It tree-shakes, so you only ship what you import.