0.0.10 • Published 7 months ago

docx-ast v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

DOCX Document reader

This library reads docx files and turns them into useful ASTs which tries to simplify the conversion from docx to markdown/html/...

There is also an existing function for converting the AST to HTML.

Example:

import fs from "node:fs";
import {
  extractNodeList,
  postProcessDocument,
  postProcessedDocToHtml,
} from "docx-ast";

const content = fs.readFileSync("test.docx");

const rawAst = await extractNodeList(content);
const processedAst = postProcessDocument(rawAst.value);
const html = postProcessedDocToHtml(processedAst);

console.log(html);
0.0.10

7 months ago

0.0.9

7 months ago

0.0.8

7 months ago

0.0.7

7 months ago

0.0.6

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago