(filePath: string)
| 129 | * @throws {Error} If file not found or unsupported binary format |
| 130 | */ |
| 131 | export async function extractTextFromFile(filePath: string): Promise<string> { |
| 132 | const result = await extractTextFromFileWithMetadata(filePath) |
| 133 | return result.content |
| 134 | } |
| 135 | |
| 136 | export function addLineNumbers(content: string, startLine: number = 1): string { |
| 137 | // If content is empty, return empty string - empty files should not have line numbers |
no test coverage detected