SkillAgentSearch skills...

Docx

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

Install / Use

/learn @dolanmiu/Docx

README

<p align="center"> <img src="./logo/logo-animate.svg" width="100%" height="300" alt="clippy the assistant"> </p> <p align="center"> Easily generate and modify .docx files with JS/TS. Works for Node and on the Browser. </p>

NPM version Downloads per month GitHub Action Workflow Status Known Vulnerabilities PRs Welcome codecov Docx.js Editor

<p align="center"> <img src="https://i.imgur.com/QeL1HuU.png" alt="drawing"/> </p>

Demo

Browser

Here are examples of docx being used with basic HTML/JS in a browser environment:

  • https://codepen.io/dolanmiu/pen/RwNeObg
  • https://jsfiddle.net/dolanmiu/onadx1gu/

Here are examples of docx working in Angular:

  • https://stackblitz.com/edit/angular-docx
  • https://stackblitz.com/edit/angular-wmd6k3

Here are examples of docx working in React:

  • https://stackblitz.com/edit/react-docx
  • https://stackblitz.com/edit/react-docx-images (adding images to Word Document)

Here is an example of docx working in Vue.js:

  • https://stackblitz.com/edit/vuejs-docx

Node

Press endpoint on the RunKit website:

RunKit Instructions

  • https://runkit.com/dolanmiu/docx-demo1 - Simple paragraph and text
  • https://runkit.com/dolanmiu/docx-demo2 - Advanced Paragraphs and text
  • https://runkit.com/dolanmiu/docx-demo3 - Bullet points
  • https://runkit.com/dolanmiu/docx-demo4 - Simple table
  • https://runkit.com/dolanmiu/docx-demo5 - Images
  • https://runkit.com/dolanmiu/docx-demo6 - Margins
  • https://runkit.com/dolanmiu/docx-demo7 - Landscape
  • https://runkit.com/dolanmiu/docx-demo8 - Header and Footer
  • https://runkit.com/dolanmiu/docx-demo10 - My CV generated with docx

More here

How to use & Documentation

Please refer to the documentation at https://docx.js.org/ for details on how to use this library, examples and much more!

Playground

Experience docx in action through Docx.js Editor, an interactive playground where you can code and preview the results in real-time.

Examples

Check the demo folder for examples.

Contributing

Read the contribution guidelines here.

Used by

<img src="https://i.imgur.com/zy5qWmI.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/OYP5tgS.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/zUDMfZ3.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/wtNB1uq.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/suiH2zc.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/1LjuK2M.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/dHMg0wF.gif" alt="drawing" height="50"/> <img src="https://i.imgur.com/QEZXU5b.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/XVU6aoi.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/fn1xccG.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/cmykN7c.png" alt="drawing"/> <img src="https://i.imgur.com/PXo25um.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/AKGhtlh.png" alt="drawing"/> <img src="https://i.imgur.com/9tqJaHw.png" alt="drawing" height="50"/> <img src="https://i.imgur.com/5bLKFeP.png" alt="drawing" height="50"/>

...and many more!


patreon browserstack

Made with 💖

View on GitHub
GitHub Stars5.6k
CategoryDevelopment
Updated7h ago
Forks592

Languages

TypeScript

Security Score

100/100

Audited on Mar 27, 2026

No findings