Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/docxml/src/Api.ts>Api

An experimental Deno tool to transform XML to DOCX with a little XPath- and component based configuration
Go to Latest
class Api
import { Api } from "https://deno.land/x/docxml@1.5.0/src/Api.ts";

Constructors

new
Api(options?: Options)

Type Parameters

PropsGeneric extends { [key: string]: unknown; }

Properties

private
readonly
options: Options
private
readonly
renderer: GenericRenderer<RuleResult, ReturnType<publicApiForBundle> & PropsGeneric>
readonly
document
readonly
docx: Docx
readonly
JSX
readonly
styles

Methods

match(xPathTest: string, transformer: Parameters<this.renderer.add>[1])
transform(xml: string, props: PropsGeneric)