mhtdoc-to-html
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

mhtdoc-to-html

NPM Version

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);

License

MIT

Package Sidebar

Install

npm i mhtdoc-to-html

Weekly Downloads

19

Version

0.1.5

License

MIT

Unpacked Size

19.4 kB

Total Files

12

Last publish

Collaborators

  • drawmoon