Skip to main content
Module

x/docxml/mod.ts>default.fromJsx

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
method default.fromJsx
import { default } from "https://deno.land/x/docxml@5.0.0/mod.ts";

Create a new DOCX with contents composed by this library's components. Needs a single JSX component as root, for example <Section> or <Paragragh>.

Parameters

roots: OfficeDocumentChild[] | Promise<OfficeDocumentChild[]>