docx
Installation
SKILL.md
DOCX — Word Document Creation & Editing
Quick Reference
| Task | Approach |
|---|---|
| Read/analyze content | pandoc or unpack for raw XML |
| Create new document | Use docx-js (npm install -g docx) |
| Edit existing document | Unpack XML, edit, repack |
Creating New Documents
const { Document, Packer, Paragraph, TextRun, Table, TableRow, TableCell,
ImageRun, Header, Footer, AlignmentType, PageOrientation,
HeadingLevel, BorderStyle, WidthType, ShadingType, PageBreak } = require('docx');