Skip to content

ReadOptions

On this page

Options for reading/parsing workbook files

interface ReadOptions extends CommonOptions, WorksheetCellBudgetOptions

Properties

NameTypeRequiredDescription
WTFbooleanNoIf true, throw errors on unexpected situations instead of silently recovering
bookVBAbooleanNoReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
cellDatesbooleanNoIf true, store dates as Date objects instead of serial numbers
sheetStubsbooleanNoIf true, include stub cells for empty cells within the used range
cellStylesbooleanNoIf true, include style/theme information on cells
passwordstringNoPassword for encrypted workbooks; non-empty values are unsupported and throw XlsxError ("UNSUPPORTED")
maxWorksheetCellsnumberNoMaximum cumulative cell work per sheet. This counts explicit cells plus
generated column, hyperlink, span, and export positions. XLSX reads default
to 10,000,000; exports default to 1,000,000.
type"base64" | "buffer" | "array" | "string"NoInput data type: "base64" for base64 string, "buffer" for Node Buffer, "array" for Uint8Array, "string" for plain text (CSV/HTML)
cellFormulabooleanNoIf true, parse and store cell formulas
cellHTMLbooleanNoIf true, generate HTML representation of rich text
cellNFbooleanNoIf true, store the number format string on each cell
cellTextbooleanNoIf true, generate formatted text for each cell
dateNFstringNoOverride date format string (replaces default "m/d/yy" for format 14)
sheetRowsnumberNoMaximum row position to retain per sheet (0 = all rows)
bookDepsbooleanNoReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
bookFilesbooleanNoReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
bookPropsbooleanNoIf true, only parse workbook properties (skip sheet data)
bookSheetsbooleanNoIf true, only parse sheet names (skip sheet data)
sheetsnumber | string | Array<number | string>NoRestrict parsing to specific sheets by index or name
nodimbooleanNoIf true, ignore the stored worksheet dimension and recalculate the range from parsed cells, anchored at A1
xlfnbooleanNoReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
FSstringNoField separator for plain-text input with type "string" (default: ","; use "\t" for TSV)
densebooleanNoIf true, use dense (2D array) storage mode instead of sparse (object) mode
UTCbooleanNoIf true, all dates are interpreted as UTC (no timezone adjustment)
maxZipEntriesnumberNoMaximum number of ZIP central-directory entries to parse
maxTotalUncompressedBytesnumberNoMaximum total uncompressed ZIP payload size across file entries
maxEntryUncompressedBytesnumberNoMaximum uncompressed ZIP payload size for a single file entry
maxXmlPartBytesnumberNoMaximum decoded XML part size
maxXmlTagsnumberNoMaximum number of raw XML tags in a single XML part
maxXmlNestingDepthnumberNoMaximum XML element nesting depth in a single XML part
maxXmlTagLengthnumberNoMaximum number of characters in a single XML tag
maxXmlAttributesPerTagnumberNoMaximum number of attributes in a single XML tag
maxSharedStringItemsnumberNoMaximum number of shared string entries to parse
maxWorksheetRowsnumberNoMaximum number of worksheet row elements or text records to scan