# sheetToTxt

Source: /xlsx-format/api-reference/functions/sheettotxt

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.

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

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| ` sheet ` | [` WorkSheet `](</xlsx-format/api-reference/interfaces/worksheet/>) | Yes | The worksheet to convert |
| ` opts ` | [` Sheet2CSVOpts `](</xlsx-format/api-reference/interfaces/sheet2csvopts/>) | No | Optional CSV/TSV generation options (same as `sheetToCsv`) |

## Returns

` string `

The TSV string representation of the worksheet
