super simple node based wrapper for python-mammoth to simply recursively convert .docx to HTML files
walks downward from place of execution through the filetree and converts every .docx file to HTML and adds .html extension.
originally it kept the .docX extension because we used it within a game environment, where the files needed the wrong file extension. If you want it to NOT rename files into .html: change line44 to the version noted as a comment.
- node installed
- python installed
- python-mammoth (https://github.com/mwilliamson/python-mammoth) installed
- $
pip install mammoth
- $
- $
cd <start directory>
- check if any filenames with spaces are present in filetree to be converted.
- If yes: use https://github.com/machinaeXphilip/NoSpace first
- $
node docXtoHTMLrecursive2.js
- enjoy the walk!