MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / serializeCsv

Function serializeCsv

packages/shared-domain/src/database-csv.ts:92–95  ·  view source on GitHub ↗
(rows: string[][])

Source from the content-addressed store, hash-verified

90
91/** Serialize a grid to RFC-4180 CSV text (LF newlines, trailing newline). */
92export function serializeCsv(rows: string[][]): string {
93 if (rows.length === 0) return ''
94 return `${rows.map((r) => r.map(serializeCell).join(',')).join('\n')}\n`
95}
96
97// ---------------------------------------------------------------------------
98// Schema-aware rows

Callers 2

serializeRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected