MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / toCsv

Function toCsv

apps/api/src/config/env/validate.ts:109–118  ·  view source on GitHub ↗
(raw: string | undefined)

Source from the content-addressed store, hash-verified

107};
108
109export const toCsv = (raw: string | undefined): string[] => {
110 if (raw === undefined || raw === "") {
111 return [];
112 }
113
114 return raw
115 .split(",")
116 .map((segment) => segment.trim())
117 .filter((segment) => segment.length > 0);
118};
119
120/*
121 * ────────────────────────────────────────────────────────────────────

Callers 2

validate.test.tsFile · 0.90
readUrlsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected