feat: add csv exporter

This commit is contained in:
2026-04-20 20:09:06 +08:00
parent 26bdff8daa
commit c846ab9f4a
3 changed files with 130 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
export function escapeCsvCell(value: string): string {
if (/[",\n]/.test(value)) {
return `"${value.replace(/"/g, "\"\"")}"`;
}
return value;
}