MCPcopy Create free account
hub / github.com/simstudioai/sim / createCsvFile

Function createCsvFile

apps/sim/app/api/table/[tableId]/import/route.test.ts:79–81  ·  view source on GitHub ↗
(contents: string, name = 'data.csv', type = 'text/csv')

Source from the content-addressed store, hash-verified

77import { POST } from '@/app/api/table/[tableId]/import/route'
78
79function createCsvFile(contents: string, name = 'data.csv', type = 'text/csv'): File {
80 return new File([contents], name, { type })
81}
82
83function createFormData(
84 file: File,

Callers 1

route.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected