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

Function toCsvRow

apps/sim/app/api/table/[tableId]/export/route.ts:135–137  ·  view source on GitHub ↗
(values: string[])

Source from the content-addressed store, hash-verified

133}
134
135function toCsvRow(values: string[]): string {
136 return values.map(escapeCsvField).join(',')
137}
138
139function escapeCsvField(field: string): string {
140 if (/[",\n\r]/.test(field)) {

Callers 1

startFunction · 0.70

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected