(bytes: number)
| 419 | |
| 420 | // Helper function to format file size |
| 421 | const formatFileSize = (bytes: number): string => { |
| 422 | if (bytes < 1024) return `${bytes} B`; |
| 423 | if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`; |
| 424 | if (bytes < 1024 * 1024 * 1024) return `${(bytes / (1024 * 1024)).toFixed(1)} MB`; |
| 425 | return `${(bytes / (1024 * 1024 * 1024)).toFixed(1)} GB`; |
| 426 | }; |
| 427 | |
| 428 | return { |
| 429 | parseCSV, |
nothing calls this directly
no outgoing calls
no test coverage detected