MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / extractTextFromDOCX

Function extractTextFromDOCX

src/integrations/misc/extract-text.ts:17–20  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

addLineNumbersFunction · 0.85

Tested by

no test coverage detected