Skip to main content
Module

x/docxml/mod.ts>default.fromArchive

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

Instantiate this class by giving it a .docx file if it is already loaded as a Archive instance.

Type Parameters

optional
PropsGeneric extends { [key: string]: unknown; } = { [key: string]: never; }

Parameters

archive: Archive

Returns

Promise<Docx<PropsGeneric>>

Instantiate this class by pointing at a .docx file location.

Type Parameters

optional
PropsGeneric extends { [key: string]: unknown; } = { [key: string]: never; }

Parameters

location: string

Returns

Promise<Docx<PropsGeneric>>