Skip to content

API / interfaces / sheet2csvopts

Interface: Sheet2CSVOpts

Options for converting a worksheet to CSV

Properties

FS

optional

FS: string

Field separator (default: ",")

RS

optional

RS: string

Record separator / row delimiter (default: "\n")

strip

optional

strip: boolean

If true, strip trailing field separators from each row

blankrows

optional

blankrows: boolean

If true, include blank rows (default: true)

skipHidden

optional

skipHidden: boolean

If true, skip hidden rows and columns

forceQuotes

optional

forceQuotes: boolean

If true, wrap all fields in quotes

rawNumbers

optional

rawNumbers: boolean

If true, emit raw numeric values instead of formatted text

dateNF

optional

dateNF: NumberFormat

Override date format for date cells

Source

src/types.ts


← Sheet | Sheet2HTMLOpts →