mhtdoc-to-html
v0.1.5
Published
Convert Altchunks Word documents (.docx file) to HTML format.
Downloads
9
Maintainers
Readme
mhtdoc-to-html
Convert Altchunks Word documents (.docx file) to HTML format.
Installing
Install mhtdoc-to-html
using npm
:
npm install --save mhtdoc-to-html
Or yarn
:
yarn add mhtdoc-to-html
Using
import fs from 'fs';
import { MhtDocToHtml } from 'mhtdoc-to-html';
const buffer = fs.readFileSync('/document.docx');
const converter = new MhtDocToHtml(buffer);
const html = converter.convertToHtml();
console.log(html);