MCPcopy Create free account
hub / github.com/Xyntopia/taskyon / read_docx

Function read_docx

src/modules/loadFiles.ts:37–41  ·  view source on GitHub ↗
(file: File)

Source from the content-addressed store, hash-verified

35}
36
37async function read_docx(file: File) {
38 const arrayBuffer = await file.arrayBuffer();
39 const result = await mammoth.extractRawText({ arrayBuffer: arrayBuffer });
40 return result.value;
41}
42
43export async function loadFile(file: File) {
44 console.log('load file: ' + file.type);

Callers 1

loadFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected