API / interfaces / sheet2jsonopts
Interface: Sheet2JSONOpts
Options for converting a worksheet to an array of JSON objects
Properties
header
optional
header: number | string[] | "A""A" for column-letter keys, number for 1-indexed row keys, string[] for custom headers
range
optional
range: anyRestrict output to a specific range (Range object, A1 string, or row number)
blankrows
optional
blankrows: booleanIf true, include blank rows in output
defval
optional
defval: anyDefault value for missing cells
raw
optional
raw: booleanIf true, use raw values (v) instead of formatted text (w)
skipHidden
optional
skipHidden: booleanIf true, skip hidden rows and columns
rawNumbers
optional
rawNumbers: booleanIf true, emit raw numeric values for non-date number cells
UTC
optional
UTC: booleanIf true, interpret dates as UTC
dateNF
optional
dateNF: NumberFormatOverride date format for date cells
Source
src/types.ts