(filePath: string)
| 15 | } |
| 16 | |
| 17 | async function extractTextFromDOCX(filePath: string): Promise<string> { |
| 18 | const result = await mammoth.extractRawText({ path: filePath }) |
| 19 | return addLineNumbers(result.value) |
| 20 | } |
| 21 | |
| 22 | async function extractTextFromIPYNB(filePath: string): Promise<string> { |
| 23 | const data = await fs.readFile(filePath, "utf8") |
nothing calls this directly
no test coverage detected