ReadOptions
Options for reading/parsing workbook files
Interface: ReadOptions
Options for reading/parsing workbook files
Hierarchy
Extends:
CommonOptionsWorksheetCellBudgetOptions
Properties
WTF
optional
WTF: booleanIf true, throw errors on unexpected situations instead of silently recovering
bookVBA
optional
bookVBA: booleanReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
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: stringPassword for encrypted workbooks; non-empty values are unsupported and throw XlsxError ("UNSUPPORTED")
maxWorksheetCells
optional
maxWorksheetCells: numberMaximum 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
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 row position to retain per sheet (0 = all rows)
bookDeps
optional
bookDeps: booleanReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
bookFiles
optional
bookFiles: booleanReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
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, ignore the stored worksheet dimension and recalculate the range from parsed cells, anchored at A1
xlfn
optional
xlfn: booleanReserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED").
FS
optional
FS: stringField separator for plain-text input with type "string" (default: ","; use "\t" for TSV)
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)
maxZipEntries
optional
maxZipEntries: numberMaximum number of ZIP central-directory entries to parse
maxTotalUncompressedBytes
optional
maxTotalUncompressedBytes: numberMaximum total uncompressed ZIP payload size across file entries
maxEntryUncompressedBytes
optional
maxEntryUncompressedBytes: numberMaximum uncompressed ZIP payload size for a single file entry
maxXmlPartBytes
optional
maxXmlPartBytes: numberMaximum decoded XML part size
maxXmlTags
optional
maxXmlTags: numberMaximum number of raw XML tags in a single XML part
maxXmlNestingDepth
optional
maxXmlNestingDepth: numberMaximum XML element nesting depth in a single XML part
maxXmlTagLength
optional
maxXmlTagLength: numberMaximum number of characters in a single XML tag
maxXmlAttributesPerTag
optional
maxXmlAttributesPerTag: numberMaximum number of attributes in a single XML tag
maxSharedStringItems
optional
maxSharedStringItems: numberMaximum number of shared string entries to parse
maxWorksheetRows
optional
maxWorksheetRows: numberMaximum number of worksheet row elements or text records to scan
Source
src/types.ts:91