MCPcopy Index your code
hub / github.com/C2FO/fast-csv / writeToString

Function writeToString

packages/format/src/index.ts:67–74  ·  view source on GitHub ↗
(
    rows: I[],
    options?: FormatterOptionsArgs<I, O>,
)

Source from the content-addressed store, hash-verified

65};
66
67export const writeToString = <I extends Row, O extends Row>(
68 rows: I[],
69 options?: FormatterOptionsArgs<I, O>,
70): Promise<string> => {
71 return writeToBuffer(rows, options).then((buffer): string => {
72 return buffer.toString();
73 });
74};
75
76export const writeToPath = <I extends Row, O extends Row>(
77 path: string,

Calls 1

writeToBufferFunction · 0.85

Tested by

no test coverage detected