0.0.10 • Published 8 months ago

docx-ast v0.0.10

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

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago