Parse the first sheet of .xlsx bytes into ColumnarData. The first parsed
row is treated as the header and its cell text becomes each column's key.
Numbers stay numbers, date cells use the date-serial convention, strings are
verbatim, and empty cells become null.
Package @sheetwrite/core
Source packages/core/src/export.ts#L327
Declaration
data : ArrayBuffer | Uint8Array ,
options ?: XlsxWorkbookOptions interface XlsxWorkbookOptions {
signal?: AbortSignal;
maxCells?: number;
resourceLimits?: Partial<Omit<XlsxResourceLimits, "maxCells">>;
onWarning?: (warning: XlsxWorkbookWarning) => void;
} interface XlsxWorkbookOptions {
signal ?: AbortSignal ;
maxCells ?: number ;
resourceLimits ?: Partial < Omit < XlsxResourceLimits , "maxCells" >>;
onWarning ?: ( warning : XlsxWorkbookWarning ) => void ;
} interface XlsxWorkbookOptions {
signal ?: AbortSignal ;
maxCells ?: number ;
resourceLimits ?: Partial <
Omit <
XlsxResourceLimits ,
"maxCells"
>
>;
onWarning ?: (
warning : XlsxWorkbookWarning ,
) => void ;
} Shared options passed to every registered table and workbook XLSX backend. API reference → , ) : Promise < ColumnarData interface ColumnarData {
rowCount: number;
columns: Record<string, ArrayLike<CellScalar | CellValue>>;
} interface ColumnarData {
rowCount : number ;
columns : Record < string , ArrayLike < CellScalar | CellValue >>;
} interface ColumnarData {
rowCount : number ;
columns : Record <
string ,
ArrayLike <
CellScalar | CellValue
>
>;
} Eager column-oriented values used to initialize a sheet. API reference → >