0.0.10 • Published 9 months ago

docx-ast v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.0.6

9 months ago

0.0.5

9 months ago

0.0.4

9 months ago

0.0.3

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago