Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/docxml/src/Docx.ts>Docx#clone

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

Clone some reusable configuration to a new instance of Docx:

  • XML rendering rules
  • Settings
  • Default content types
  • Custom styles

Does not clone other things, like:

  • Not content
  • Not content type overrides
  • Not relationships
  • Not anything else either

Returns

Docx<PropsGeneric>