Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@office-open/docx

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@office-open/docx - npm Package Compare versions

Comparing version
0.3.1
to
0.3.2
+3
-3
package.json
{
"name": "@office-open/docx",
"version": "0.3.1",
"version": "0.3.2",
"description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",

@@ -46,4 +46,4 @@ "keywords": [

"undio": "0.2.0",
"@office-open/core": "0.3.1",
"@office-open/xml": "0.3.1"
"@office-open/core": "0.3.2",
"@office-open/xml": "0.3.2"
},

@@ -50,0 +50,0 @@ "scripts": {

@@ -79,13 +79,24 @@ # @office-open/docx

Performance comparison against original `docx` (9.6.1) package:
Performance comparison against original `docx` (9.6.1) package (Windows 11 / Node 22):
| Scenario | @office-open/docx | docx | Speedup |
| ------------------------------------------------------- | ----------------: | ---------: | --------: |
| Simple document (2 paragraphs) | 25.7K ops/s | 5.3K ops/s | **4.84x** |
| Styled paragraphs (20 paragraphs) | 24.2K ops/s | 4.4K ops/s | **5.45x** |
| Table (10x5 cells) | 15.5K ops/s | 3.3K ops/s | **4.70x** |
| Full featured (header/footer/headings/table/paragraphs) | 13.8K ops/s | 2.6K ops/s | **5.30x** |
**Object Creation (no pack)**
| Scenario | @office-open/docx | docx | Speedup |
| ------------------------------------------------------- | ----------------: | ---------: | -------: |
| Simple document (2 paragraphs) | 27.6K ops/s | 6.9K ops/s | **4.0x** |
| Styled paragraphs (20 paragraphs) | 26.1K ops/s | 4.3K ops/s | **6.0x** |
| Table (10x5 cells) | 18.3K ops/s | 3.6K ops/s | **5.1x** |
| Full featured (header/footer/headings/table/paragraphs) | 15.3K ops/s | 2.9K ops/s | **5.3x** |
**Create + toBuffer (end-to-end)**
| Scenario | @office-open/docx | docx | Speedup |
| ------------------------------------------------------- | ----------------: | --------: | -------: |
| Simple document (2 paragraphs) | 398 ops/s | 252 ops/s | **1.6x** |
| Styled paragraphs (20 paragraphs) | 492 ops/s | 290 ops/s | **1.7x** |
| Table (10x5 cells) | 442 ops/s | 268 ops/s | **1.6x** |
| Full featured (header/footer/headings/table/paragraphs) | 347 ops/s | 219 ops/s | **1.6x** |
## License
- [MIT](LICENSE) © [Demo Macro](https://imst.xyz/)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display