feature: First push to git

This commit is contained in:
Keith Solomon
2026-05-16 14:02:49 -05:00
commit 265f69d95a
46 changed files with 11551 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const invalidSheetCharacters = /[:/\\?*[\]]/g;
export function sanitizeSheetName(input: string): string {
const cleaned = input.replace(invalidSheetCharacters, ' ').replace(/\s+/g, ' ').trim();
return (cleaned || 'Newsletter').slice(0, 100);
}
export function escapeCell(value: unknown): unknown {
if (typeof value !== 'string') {
return value;
}
return /^[=+\-@]/.test(value) ? `'${value}` : value;
}
export interface CatalogPayload {
rows: Record<string, unknown>[];
sponsors: Record<string, unknown>[];
deadLinks: Record<string, unknown>[];
}
export interface OutputWriter {
write(payload: CatalogPayload): Promise<unknown>;
}