Skip to main content
Deno 2 is finally here 🎉️
Learn more
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@2.0.1/src/Api.ts";

Constructors

new
Api(options?: Options)

Type Parameters

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

Properties

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

The JSX pragma.

readonly
options: Options
readonly
styles

Methods

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

Static Properties

readonly
deprecated
JSX

The JSX pragma.