@sunertech/docx 10.0.0

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/package.json ADDED
@@ -0,0 +1,120 @@
1
+ {
2
+ "name": "@sunertech/docx",
3
+ "version": "10.0.0",
4
+ "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
5
+ "type": "module",
6
+ "main": "dist/index.umd.cjs",
7
+ "module": "./dist/index.mjs",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.mjs"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "scripts": {
25
+ "build": "tsc && vite build",
26
+ "test": "vitest --ui --coverage",
27
+ "test:ci": "vitest run --coverage",
28
+ "prepublishOnly": "npm run build --omit=dev",
29
+ "lint": "eslint --flag unstable_ts_config --config eslint.config.ts",
30
+ "demo": "tsx ./demo/index.ts",
31
+ "typedoc": "typedoc src/index.ts --tsconfig tsconfig.typedoc.json",
32
+ "prettier": "prettier -l \"{src,scripts,demo}/**/*.{ts,html}\"",
33
+ "prettier:fix": "npm run prettier -- --write",
34
+ "cspell": "cspell \"{src,demo,docs,scripts}/**/*.{ts,scss,html,md}\" && cspell \"./*.*\"",
35
+ "serve.docs": "cd docs && docsify serve",
36
+ "extract": "tsx scripts/extract-document.ts",
37
+ "run-ts": "tsx"
38
+ },
39
+ "pre-commit": [
40
+ "prettier",
41
+ "lint"
42
+ ],
43
+ "repository": {
44
+ "type": "git",
45
+ "url": "git+https://github.com/sunertech/docx.git"
46
+ },
47
+ "keywords": [
48
+ "docx",
49
+ "office",
50
+ "word",
51
+ "generate",
52
+ "creator",
53
+ "create",
54
+ "document",
55
+ "doc",
56
+ "officegen",
57
+ "clippy"
58
+ ],
59
+ "dependencies": {
60
+ "@types/node": "^24.0.1",
61
+ "hash.js": "^1.1.7",
62
+ "jszip": "^3.10.1",
63
+ "nanoid": "^5.1.3",
64
+ "xlsx": "^0.18.5",
65
+ "xml": "^1.0.1",
66
+ "xml-js": "^1.6.8"
67
+ },
68
+ "author": "Dolan Miu",
69
+ "license": "MIT",
70
+ "bugs": {
71
+ "url": "https://github.com/sunertech/docx/issues"
72
+ },
73
+ "homepage": "https://docx.js.org",
74
+ "devDependencies": {
75
+ "@types/eslint__js": "^8.42.3",
76
+ "@types/inquirer": "^9.0.3",
77
+ "@types/prompt": "^1.1.1",
78
+ "@types/unzipper": "^0.10.4",
79
+ "@types/xml": "^1.0.8",
80
+ "@typescript-eslint/eslint-plugin": "^8.8.1",
81
+ "@typescript-eslint/parser": "^8.8.1",
82
+ "@vitest/coverage-v8": "^3.0.8",
83
+ "@vitest/ui": "^3.0.8",
84
+ "cspell": "^9.0.0",
85
+ "docsify-cli": "^4.4.4",
86
+ "eslint": "^9.13.0",
87
+ "eslint-import-resolver-typescript": "^4.3.2",
88
+ "eslint-plugin-functional": "^7.0.2",
89
+ "eslint-plugin-import": "^2.26.0",
90
+ "eslint-plugin-jsdoc": "^51.0.1",
91
+ "eslint-plugin-no-null": "^1.0.2",
92
+ "eslint-plugin-prefer-arrow": "^1.2.3",
93
+ "eslint-plugin-unicorn": "^61.0.2",
94
+ "execa": "^9.4.0",
95
+ "glob": "^11.0.0",
96
+ "inquirer": "^12.0.0",
97
+ "jiti": "^2.3.3",
98
+ "jsdom": "^26.0.0",
99
+ "pre-commit": "^1.2.2",
100
+ "prettier": "^3.1.1",
101
+ "tsconfig-paths": "^4.0.0",
102
+ "tsx": "^4.7.0",
103
+ "typedoc": "^0.28.2",
104
+ "typescript": "5.3.3",
105
+ "typescript-eslint": "^8.10.0",
106
+ "unzipper": "^0.12.3",
107
+ "vite": "^6.0.1",
108
+ "vite-plugin-dts": "^4.2.4",
109
+ "vite-plugin-node-polyfills": "^0.23.0",
110
+ "vite-tsconfig-paths": "^5.0.1",
111
+ "vitest": "^3.0.8"
112
+ },
113
+ "engines": {
114
+ "node": ">=10"
115
+ },
116
+ "publishConfig": {
117
+ "tag": "latest",
118
+ "access": "public"
119
+ }
120
+ }