UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

17 lines (14 loc) 399 B
import { XmlComponent } from "file/xml-components"; import { DocPropertiesAttributes } from "./doc-properties-attributes"; export class DocProperties extends XmlComponent { constructor() { super("wp:docPr"); this.root.push( new DocPropertiesAttributes({ id: 0, name: "", descr: "", }), ); } }