Skip to content

sheetToTxt

On this page

Convert a worksheet to a tab-separated values (TSV) string.

This is a convenience wrapper around sheetToCsv with tab as the field separator and newline as the record separator.

sheetToTxt(sheet: WorkSheet, opts?: Sheet2CSVOpts): string

Parameters

NameTypeRequiredDescription
sheetWorkSheetYesThe worksheet to convert
optsSheet2CSVOptsNoOptional CSV/TSV generation options (same as sheetToCsv)

Returns

string

The TSV string representation of the worksheet