Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

suneel-eng/extract-word-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is extract-word-docs?

extract-word-docs package will convert word documents (.docx) into html by using regex.

Installation

npm i extract-word-docs --save

Usage

const Document = require('extract-word-docs');

let document = new Document(filepath, {editable: false, delText: false});

document.extractAsHTML().then(data => {
    console.log(data);
});

Options

You can pause these options for the contructor.

editable: true | false (default is false)

  • true to get editable document (if you edit something, changes will occur only in the extracted document not in the original document).
  • false to get uneditable document.

delText: true | false (default is false)

  • true to get deleted text. (deleted text will contain red color by default).
  • false to neglect deleted text.

Supported elements:

  • Paragraphs
  • Tables

To do

  • Lists
  • Images
  • Links
  • Styles

About

.docx to html converter

Resources

Stars

Watchers

Forks

Packages

No packages published