My code is as below. The contents of the file is a simple "hello world" I have the hello.docx file in the same folder I am calling this mammoth function.
Error result: fatal Error: ENOENT: no such file or directory, open './hello.docx'
Any idea what I am doing wrong? I am using this in my express node route
mammoth.extractRawText({path: "./hello.docx"})
.then(function(result){
var text = result.value; // The raw text
console.log(text);
// var messages = result.messages;
})
.done();