# streamCsv (@salmonui/data-grid/engine/export)

> The streamCsv function of @salmonui/data-grid/engine/export: Streams the model as CSV chunks. Each chunk is complete lines; chunks end at chunkRows rows or after sliceMs, then the iterator awaits yield before producing the next one. Pipe into a WritableStream, a file, or collect into a Blob.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-export/streamCsv

```ts
import { streamCsv } from '@salmonui/data-grid/engine/export';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-export (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-export.md).

## Reference

Kind: function

```ts
function streamCsv<Row>(model: ExportModel<Row>, options?: CsvStreamOptions): AsyncGenerator<string, void, undefined>;
```

Streams the model as CSV chunks. Each chunk is complete lines; chunks end
at `chunkRows` rows or after `sliceMs`, then the iterator awaits `yield`
before producing the next one. Pipe into a `WritableStream`, a file, or
collect into a `Blob`.
