Skip to content
JS
Package

docx

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

v9.7.2, 23 Sept 2026MITESM + CommonJSTypes: BundledPDF and documents
$ npm install docx

Key numbers

As of 25 Sept 2026
Weekly downloads
4m
+806% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
6
Direct, from package.json
Last release
1 day ago
v9.7.2
GitHub stars
-
Open issues / PRs
- / -
Contributors
-
Commits, last 52 weeks
-

Downloads

Last week 2026-09-15 to 2026-09-21
05m10m15m20mSept 2025Mar 2026Sept 2026High 16.8m (30 Jun 2026)Low 432.5k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

3,989,524 downloads last week, 19,389,738 in the last month. The 12-month change of +806% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
793 in total
Latest version
9.7.2, 23 Sept 20261 day ago
First published
27 Mar 2016
Last push to GitHub
-
Repository archived
-
Open issues
-
Open pull requests
-
Commits, last 52 weeks
-
Dependents on npm
-

Major versions

  1. v9 first release 9.0.0, 10 Oct 2024
  2. v8 first release 8.0.0, 19 Mar 2023
  3. v7 first release 7.0.0, 27 Sept 2021
  4. v6 first release 6.0.0, 21 Mar 2021
  5. v5 first release 5.0.0, 31 Dec 2019
  6. v4 first release 4.0.0, 23 Aug 2018
  7. v3 first release 3.0.0, 16 Sept 2017
  8. v2 first release 2.0.0, 1 Apr 2017
  9. v1 first release 1.0.0, 19 Jul 2016
  10. v0 first release 0.0.0, 27 Mar 2016

Recent releases

VersionPublished
9.7.223 Sept 2026
9.7.127 May 2026
9.7.024 May 2026
9.6.110 Mar 2026
9.6.024 Feb 2026
9.5.315 Feb 2026
9.5.213 Feb 2026
9.5.116 Jun 2025
9.5.05 May 2025
9.4.117 Apr 2025
9.4.016 Apr 2025
9.3.015 Mar 2025
9.2.016 Feb 2025
9.1.110 Jan 2025
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
>=10
Runtimes
-
Unpacked size (npm)
4.5 MB
Dependencies (6)
xmljszipnanoidxml-jshash.js@types/node
npm install docx

CDN

jsDelivr: 2.2m requests in 30 days
  • jsDelivrhttps://cdn.jsdelivr.net/npm/docx@9.7.2/
  • unpkghttps://unpkg.com/docx@9.7.2/
  • esm.shhttps://esm.sh/docx@9.7.2
Sources: npm registry, npm downloads API, jsDelivr. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): GitHub data not fetched yet.