# ReadOptions

Source: /xlsx-format/api-reference/interfaces/readoptions

Options for reading/parsing workbook files

```ts
interface ReadOptions extends CommonOptions, WorksheetCellBudgetOptions
```

## Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` WTF ` | ` boolean ` | No | If true, throw errors on unexpected situations instead of silently recovering |
| ` bookVBA ` | ` boolean ` | No | Reserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED"). |
| ` cellDates ` | ` boolean ` | No | If true, store dates as Date objects instead of serial numbers |
| ` sheetStubs ` | ` boolean ` | No | If true, include stub cells for empty cells within the used range |
| ` cellStyles ` | ` boolean ` | No | If true, include style/theme information on cells |
| ` password ` | ` string ` | No | Password for encrypted workbooks; non-empty values are unsupported and throw XlsxError ("UNSUPPORTED") |
| ` maxWorksheetCells ` | ` number ` | No | Maximum 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" ` | No | Input data type: "base64" for base64 string, "buffer" for Node Buffer, "array" for Uint8Array, "string" for plain text (CSV/HTML) |
| ` cellFormula ` | ` boolean ` | No | If true, parse and store cell formulas |
| ` cellHTML ` | ` boolean ` | No | If true, generate HTML representation of rich text |
| ` cellNF ` | ` boolean ` | No | If true, store the number format string on each cell |
| ` cellText ` | ` boolean ` | No | If true, generate formatted text for each cell |
| ` dateNF ` | ` string ` | No | Override date format string (replaces default "m/d/yy" for format 14) |
| ` sheetRows ` | ` number ` | No | Maximum row position to retain per sheet (0 = all rows) |
| ` bookDeps ` | ` boolean ` | No | Reserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED"). |
| ` bookFiles ` | ` boolean ` | No | Reserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED"). |
| ` bookProps ` | ` boolean ` | No | If true, only parse workbook properties (skip sheet data) |
| ` bookSheets ` | ` boolean ` | No | If true, only parse sheet names (skip sheet data) |
| ` sheets ` | ` number \| string \| Array<number \| string> ` | No | Restrict parsing to specific sheets by index or name |
| ` nodim ` | ` boolean ` | No | If true, ignore the stored worksheet dimension and recalculate the range from parsed cells, anchored at A1 |
| ` xlfn ` | ` boolean ` | No | Reserved compatibility option. A true value is unsupported and throws XlsxError ("UNSUPPORTED"). |
| ` FS ` | ` string ` | No | Field separator for plain-text input with type "string" (default: ","; use "\t" for TSV) |
| ` dense ` | ` boolean ` | No | If true, use dense (2D array) storage mode instead of sparse (object) mode |
| ` UTC ` | ` boolean ` | No | If true, all dates are interpreted as UTC (no timezone adjustment) |
| ` maxZipEntries ` | ` number ` | No | Maximum number of ZIP central-directory entries to parse |
| ` maxTotalUncompressedBytes ` | ` number ` | No | Maximum total uncompressed ZIP payload size across file entries |
| ` maxEntryUncompressedBytes ` | ` number ` | No | Maximum uncompressed ZIP payload size for a single file entry |
| ` maxXmlPartBytes ` | ` number ` | No | Maximum decoded XML part size |
| ` maxXmlTags ` | ` number ` | No | Maximum number of raw XML tags in a single XML part |
| ` maxXmlNestingDepth ` | ` number ` | No | Maximum XML element nesting depth in a single XML part |
| ` maxXmlTagLength ` | ` number ` | No | Maximum number of characters in a single XML tag |
| ` maxXmlAttributesPerTag ` | ` number ` | No | Maximum number of attributes in a single XML tag |
| ` maxSharedStringItems ` | ` number ` | No | Maximum number of shared string entries to parse |
| ` maxWorksheetRows ` | ` number ` | No | Maximum number of worksheet row elements or text records to scan |
