MCPcopy Index your code
hub / github.com/simstudioai/sim / streamOf

Function streamOf

apps/sim/lib/file-parsers/csv-preview-slice.test.ts:18–21  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

16import { getCsvPreviewSlice } from '@/lib/file-parsers/csv-preview-slice'
17
18function streamOf(text: string): Readable {
19 // Array-wrapped so the whole text is one chunk (a bare Buffer/string is iterated element-wise).
20 return Readable.from([Buffer.from(text, 'utf-8')])
21}
22
23const args = { key: 'workspace/ws_1/file.csv', context: 'workspace' as const }
24

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected