API / interfaces / readoptions
Interface: ReadOptions
Options for reading/parsing workbook files
Hierarchy
Extends:
CommonOptions
Properties
WTF
optional
WTF: booleanIf true, throw errors on unexpected situations instead of silently recovering
bookVBA
optional
bookVBA: booleanIf true, expose VBA macro data in workbook.vbaraw
cellDates
optional
cellDates: booleanIf true, store dates as Date objects instead of serial numbers
sheetStubs
optional
sheetStubs: booleanIf true, include stub cells for empty cells within the used range
cellStyles
optional
cellStyles: booleanIf true, include style/theme information on cells
password
optional
password: stringWorkbook password for encrypted files
type
optional
type: "string" | "base64" | "buffer" | "array"Input data type: "base64" for base64 string, "buffer" for Node Buffer, "array" for Uint8Array, "string" for plain text (CSV/HTML)
cellFormula
optional
cellFormula: booleanIf true, parse and store cell formulas
cellHTML
optional
cellHTML: booleanIf true, generate HTML representation of rich text
cellNF
optional
cellNF: booleanIf true, store the number format string on each cell
cellText
optional
cellText: booleanIf true, generate formatted text for each cell
dateNF
optional
dateNF: stringOverride date format string (replaces default "m/d/yy" for format 14)
sheetRows
optional
sheetRows: numberMaximum number of rows to read per sheet (0 = all rows)
bookDeps
optional
bookDeps: booleanIf true, parse inter-sheet dependencies
bookFiles
optional
bookFiles: booleanIf true, expose raw ZIP file entries
bookProps
optional
bookProps: booleanIf true, only parse workbook properties (skip sheet data)
bookSheets
optional
bookSheets: booleanIf true, only parse sheet names (skip sheet data)
sheets
optional
sheets: string | number | (string | number)[]Restrict parsing to specific sheets by index or name
nodim
optional
nodim: booleanIf true, do not infer sheet dimensions from data
xlfn
optional
xlfn: booleanIf true, preserve _xlfn. prefixes on formula function names
dense
optional
dense: booleanIf true, use dense (2D array) storage mode instead of sparse (object) mode
UTC
optional
UTC: booleanIf true, all dates are interpreted as UTC (no timezone adjustment)
Source
src/types.ts