(filePath: string)
| 348 | } |
| 349 | |
| 350 | async function processDocFile(filePath: string) { |
| 351 | const extractor = new WordExtractor(); |
| 352 | const extracted = await extractor.extract(filePath); |
| 353 | return { |
| 354 | success: true, |
| 355 | content: extracted.getBody(), |
| 356 | metadata: { format: 'text', originalFormat: 'doc' }, |
| 357 | }; |
| 358 | } |
| 359 | |
| 360 | async function processMarkdownWithFormatting(filePath: string) { |
| 361 | try { |
no outgoing calls
no test coverage detected