@office-open/docx 0.7.1 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -6
- package/dist/{chunk-DHfcOUro.mjs → chunk-BBjsoOtd.mjs} +1 -3
- package/dist/index.d.mts +751 -89
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +16711 -8507
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|

|
|
6
6
|
|
|
7
|
-
>
|
|
7
|
+
> Generate, parse, and patch .docx documents with a declarative TypeScript API. Works in Node.js and browsers.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
- 📖 **Table of Contents** — Auto-generated table of contents with custom styling
|
|
20
20
|
- 📝 **Footnotes & Endnotes** — Comprehensive footnote and endnote support
|
|
21
21
|
- 📈 **Charts** — Bar, line, pie, area, and scatter charts with customization
|
|
22
|
-
- 🔢 **Math Equations** — Full mathematical equation support via MathML
|
|
22
|
+
- 🔢 **Math Equations** — Full mathematical equation support via Office MathML (OMML)
|
|
23
23
|
- 🧩 **SmartArt** — Built-in SmartArt graphic generation
|
|
24
24
|
- 📚 **Bibliography** — Source management and citation support
|
|
25
25
|
- 💬 **Comments** — Document comments with author and date tracking
|
|
@@ -35,11 +35,17 @@
|
|
|
35
35
|
## Installation
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
#
|
|
39
|
-
|
|
38
|
+
# pnpm
|
|
39
|
+
pnpm add @office-open/docx
|
|
40
40
|
|
|
41
|
-
#
|
|
42
|
-
|
|
41
|
+
# npm
|
|
42
|
+
npm install @office-open/docx
|
|
43
|
+
|
|
44
|
+
# yarn
|
|
45
|
+
yarn add @office-open/docx
|
|
46
|
+
|
|
47
|
+
# bun
|
|
48
|
+
bun add @office-open/docx
|
|
43
49
|
```
|
|
44
50
|
|
|
45
51
|
## Quick Start
|
|
@@ -3,7 +3,6 @@ var __defProp = Object.defineProperty;
|
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
7
6
|
var __exportAll = (all, no_symbols) => {
|
|
8
7
|
let target = {};
|
|
9
8
|
for (var name in all) __defProp(target, name, {
|
|
@@ -24,6 +23,5 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
24
23
|
return to;
|
|
25
24
|
};
|
|
26
25
|
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
27
|
-
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
26
|
//#endregion
|
|
29
|
-
export {
|
|
27
|
+
export { __reExport as n, __exportAll as t };
|