How to use the mammoth.extractRawText function in mammoth

To help you get started, we’ve selected a few mammoth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github magda-io / magda / magda-web-client / src / Components / Dataset / MetadataExtraction / extractText.js View on Github external
async function extractDocumentFile(input, output) {
    input.text = (
        await mammoth.extractRawText({
            arrayBuffer: input.arrayBuffer
        })
    ).value;
}

mammoth

Convert Word documents from docx to simple HTML and Markdown

BSD-2-Clause
Latest version published 27 days ago

Package Health Score

78 / 100
Full package analysis