openxmlsdkts 1.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/LICENSE +21 -0
- package/dist/ContentType.d.ts +91 -0
- package/dist/ContentType.d.ts.map +1 -0
- package/dist/ContentType.js +100 -0
- package/dist/ContentType.js.map +1 -0
- package/dist/OpenXmlNamespacesAndNames.d.ts +3414 -0
- package/dist/OpenXmlNamespacesAndNames.d.ts.map +1 -0
- package/dist/OpenXmlNamespacesAndNames.js +3473 -0
- package/dist/OpenXmlNamespacesAndNames.js.map +1 -0
- package/dist/OpenXmlPackage.d.ts +47 -0
- package/dist/OpenXmlPackage.d.ts.map +1 -0
- package/dist/OpenXmlPackage.js +388 -0
- package/dist/OpenXmlPackage.js.map +1 -0
- package/dist/OpenXmlPart.d.ts +76 -0
- package/dist/OpenXmlPart.d.ts.map +1 -0
- package/dist/OpenXmlPart.js +243 -0
- package/dist/OpenXmlPart.js.map +1 -0
- package/dist/OpenXmlRelationship.d.ts +19 -0
- package/dist/OpenXmlRelationship.d.ts.map +1 -0
- package/dist/OpenXmlRelationship.js +52 -0
- package/dist/OpenXmlRelationship.js.map +1 -0
- package/dist/PmlDocument.d.ts +7 -0
- package/dist/PmlDocument.d.ts.map +1 -0
- package/dist/PmlDocument.js +23 -0
- package/dist/PmlDocument.js.map +1 -0
- package/dist/RelationshipType.d.ts +84 -0
- package/dist/RelationshipType.d.ts.map +1 -0
- package/dist/RelationshipType.js +93 -0
- package/dist/RelationshipType.js.map +1 -0
- package/dist/SmlDocument.d.ts +7 -0
- package/dist/SmlDocument.d.ts.map +1 -0
- package/dist/SmlDocument.js +23 -0
- package/dist/SmlDocument.js.map +1 -0
- package/dist/Utility.d.ts +7 -0
- package/dist/Utility.d.ts.map +1 -0
- package/dist/Utility.js +46 -0
- package/dist/Utility.js.map +1 -0
- package/dist/WmlDocument.d.ts +8 -0
- package/dist/WmlDocument.d.ts.map +1 -0
- package/dist/WmlDocument.js +41 -0
- package/dist/WmlDocument.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +88 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Utility.d.ts","sourceRoot":"","sources":["../src/Utility.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,qBAAa,OAAO;IAClB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM;IAMhD,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,WAAW,GAAG,WAAW,GAAG,SAAS;IAI9D,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;CAuBvC"}
|
package/dist/Utility.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* OpenXmlSdkTs (Open XML SDK for TypeScript)
|
|
4
|
+
* Copyright (c) 2026 Eric White
|
|
5
|
+
* eric@ericwhite.com
|
|
6
|
+
* https://www.ericwhite.com
|
|
7
|
+
* linkedin.com/in/ericwhitedev
|
|
8
|
+
* Licensed under the MIT License
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.Utility = void 0;
|
|
12
|
+
class Utility {
|
|
13
|
+
static getRelsPartUri(part) {
|
|
14
|
+
const uri = part.getUri();
|
|
15
|
+
const lastSlash = uri.lastIndexOf("/");
|
|
16
|
+
return uri.substring(0, lastSlash) + "/_rels/" + uri.substring(lastSlash + 1) + ".rels";
|
|
17
|
+
}
|
|
18
|
+
static getRelsPart(part) {
|
|
19
|
+
return part.getPkg().getPartByUri(Utility.getRelsPartUri(part));
|
|
20
|
+
}
|
|
21
|
+
static isBase64(str) {
|
|
22
|
+
if (typeof str !== "string") {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
const sub = str.substring(0, 500);
|
|
26
|
+
for (let i = 0; i < sub.length; i++) {
|
|
27
|
+
const s = sub[i];
|
|
28
|
+
if (s >= "A" && s <= "Z") {
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
if (s >= "a" && s <= "z") {
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
if (s >= "0" && s <= "9") {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
if (s === "+" || s === "/") {
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.Utility = Utility;
|
|
46
|
+
//# sourceMappingURL=Utility.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Utility.js","sourceRoot":"","sources":["../src/Utility.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAIH,MAAa,OAAO;IAClB,MAAM,CAAC,cAAc,CAAC,IAAiB;QACrC,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1B,MAAM,SAAS,GAAG,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACvC,OAAO,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC,SAAS,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC;IAC1F,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,IAAiB;QAClC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC,GAAY;QAC1B,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;YAC5B,OAAO,KAAK,CAAC;QACf,CAAC;QACD,MAAM,GAAG,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;YACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;gBACzB,SAAS;YACX,CAAC;YACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;gBACzB,SAAS;YACX,CAAC;YACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;gBACzB,SAAS;YACX,CAAC;YACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;gBAC3B,SAAS;YACX,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAlCD,0BAkCC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OpenXmlPackage, Base64String, FlatOpcString, DocxBinary } from "./OpenXmlPackage";
|
|
2
|
+
import { OpenXmlPart } from "./OpenXmlPart";
|
|
3
|
+
export declare class WmlDocument extends OpenXmlPackage {
|
|
4
|
+
static open(document: Base64String | FlatOpcString | DocxBinary): Promise<WmlDocument>;
|
|
5
|
+
mainDocumentPart(): Promise<OpenXmlPart | undefined>;
|
|
6
|
+
contentParts(): Promise<OpenXmlPart[]>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=WmlDocument.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WmlDocument.d.ts","sourceRoot":"","sources":["../src/WmlDocument.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,WAAY,SAAQ,cAAc;WAChC,IAAI,CAAC,QAAQ,EAAE,YAAY,GAAG,aAAa,GAAG,UAAU,GAAG,OAAO,CAAC,WAAW,CAAC;IAItF,gBAAgB,IAAI,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;IAIpD,YAAY,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC;CAkB7C"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* OpenXmlSdkTs (Open XML SDK for TypeScript)
|
|
4
|
+
* Copyright (c) 2026 Eric White
|
|
5
|
+
* eric@ericwhite.com
|
|
6
|
+
* https://www.ericwhite.com
|
|
7
|
+
* linkedin.com/in/ericwhitedev
|
|
8
|
+
* Licensed under the MIT License
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.WmlDocument = void 0;
|
|
12
|
+
const ContentType_1 = require("./ContentType");
|
|
13
|
+
const OpenXmlPackage_1 = require("./OpenXmlPackage");
|
|
14
|
+
class WmlDocument extends OpenXmlPackage_1.OpenXmlPackage {
|
|
15
|
+
static async open(document) {
|
|
16
|
+
return OpenXmlPackage_1.OpenXmlPackage.openInto(new WmlDocument(), document);
|
|
17
|
+
}
|
|
18
|
+
async mainDocumentPart() {
|
|
19
|
+
return (await this.getPartsByContentType(ContentType_1.ContentType.mainDocument))[0];
|
|
20
|
+
}
|
|
21
|
+
async contentParts() {
|
|
22
|
+
const main = await this.mainDocumentPart();
|
|
23
|
+
if (!main) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
const parts = [main];
|
|
27
|
+
parts.push(...(await main.headerParts()));
|
|
28
|
+
parts.push(...(await main.footerParts()));
|
|
29
|
+
const endnotes = await main.endnotesPart();
|
|
30
|
+
if (endnotes) {
|
|
31
|
+
parts.push(endnotes);
|
|
32
|
+
}
|
|
33
|
+
const footnotes = await main.footnotesPart();
|
|
34
|
+
if (footnotes) {
|
|
35
|
+
parts.push(footnotes);
|
|
36
|
+
}
|
|
37
|
+
return parts;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.WmlDocument = WmlDocument;
|
|
41
|
+
//# sourceMappingURL=WmlDocument.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WmlDocument.js","sourceRoot":"","sources":["../src/WmlDocument.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,+CAA4C;AAC5C,qDAA2F;AAG3F,MAAa,WAAY,SAAQ,+BAAc;IAC7C,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAmD;QACnE,OAAO,+BAAc,CAAC,QAAQ,CAAC,IAAI,WAAW,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC9D,CAAC;IAED,KAAK,CAAC,gBAAgB;QACpB,OAAO,CAAC,MAAM,IAAI,CAAC,qBAAqB,CAAC,yBAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,YAAY;QAChB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC3C,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,CAAC;QACZ,CAAC;QACD,MAAM,KAAK,GAAkB,CAAC,IAAI,CAAC,CAAC;QACpC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAC1C,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAC1C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC;QAC3C,IAAI,QAAQ,EAAE,CAAC;YACb,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvB,CAAC;QACD,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,aAAa,EAAE,CAAC;QAC7C,IAAI,SAAS,EAAE,CAAC;YACd,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACxB,CAAC;QACD,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AA3BD,kCA2BC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { OpenXmlPackage } from "./OpenXmlPackage";
|
|
2
|
+
export { WmlDocument } from "./WmlDocument";
|
|
3
|
+
export { SmlDocument } from "./SmlDocument";
|
|
4
|
+
export { PmlDocument } from "./PmlDocument";
|
|
5
|
+
export { OpenXmlRelationship } from "./OpenXmlRelationship";
|
|
6
|
+
export type { Base64String, FlatOpcString, DocxBinary } from "./OpenXmlPackage";
|
|
7
|
+
export { Utility } from "./Utility";
|
|
8
|
+
export { OpenXmlPart } from "./OpenXmlPart";
|
|
9
|
+
export type { PartType } from "./OpenXmlPart";
|
|
10
|
+
export { ContentType } from "./ContentType";
|
|
11
|
+
export type { ContentTypeKey, ContentTypeValue } from "./ContentType";
|
|
12
|
+
export { RelationshipType } from "./RelationshipType";
|
|
13
|
+
export type { RelationshipTypeKey, RelationshipTypeValue } from "./RelationshipType";
|
|
14
|
+
export { XDocument, XDeclaration, XElement, XAttribute, XName, XNamespace, XProcessingInstruction } from "ltxmlts";
|
|
15
|
+
export { A, A14, C, CDR, COM, CP, CT, CUSTPRO, DC, DCTERMS, DGM, DGM14, DIGSIG, DS, DSP, EP, FLATOPC, LC, M, MC, MDSSI, MP, MV, NoNamespace, O, P, P14, P15, Pic, PKGREL, R, S, SL, SLE, VML, VT, W, W10, W14, W3DIGSIG, WP, WP14, WPS, X, XDR, XDR14, XM, XSI, } from "./OpenXmlNamespacesAndNames";
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":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AG,EACH,GAAG,EACH,EAAE,EACF,CAAC,EACD,GAAG,EACH,GAAG,EACH,QAAQ,EACR,EAAE,EACF,IAAI,EACJ,GAAG,EACH,CAAC,EACD,GAAG,EACH,KAAK,EACL,EAAE,EACF,GAAG,GACJ,MAAM,6BAA6B,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* OpenXmlSdkTs (Open XML SDK for TypeScript)
|
|
4
|
+
* Copyright (c) 2026 Eric White
|
|
5
|
+
* eric@ericwhite.com
|
|
6
|
+
* https://www.ericwhite.com
|
|
7
|
+
* linkedin.com/in/ericwhitedev
|
|
8
|
+
* Licensed under the MIT License
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.SLE = exports.SL = exports.S = exports.R = exports.PKGREL = exports.Pic = exports.P15 = exports.P14 = exports.P = exports.O = exports.NoNamespace = exports.MV = exports.MP = exports.MDSSI = exports.MC = exports.M = exports.LC = exports.FLATOPC = exports.EP = exports.DSP = exports.DS = exports.DIGSIG = exports.DGM14 = exports.DGM = exports.DCTERMS = exports.DC = exports.CUSTPRO = exports.CT = exports.CP = exports.COM = exports.CDR = exports.C = exports.A14 = exports.A = exports.XProcessingInstruction = exports.XNamespace = exports.XName = exports.XAttribute = exports.XElement = exports.XDeclaration = exports.XDocument = exports.RelationshipType = exports.ContentType = exports.OpenXmlPart = exports.Utility = exports.OpenXmlRelationship = exports.PmlDocument = exports.SmlDocument = exports.WmlDocument = exports.OpenXmlPackage = void 0;
|
|
12
|
+
exports.XSI = exports.XM = exports.XDR14 = exports.XDR = exports.X = exports.WPS = exports.WP14 = exports.WP = exports.W3DIGSIG = exports.W14 = exports.W10 = exports.W = exports.VT = exports.VML = void 0;
|
|
13
|
+
var OpenXmlPackage_1 = require("./OpenXmlPackage");
|
|
14
|
+
Object.defineProperty(exports, "OpenXmlPackage", { enumerable: true, get: function () { return OpenXmlPackage_1.OpenXmlPackage; } });
|
|
15
|
+
var WmlDocument_1 = require("./WmlDocument");
|
|
16
|
+
Object.defineProperty(exports, "WmlDocument", { enumerable: true, get: function () { return WmlDocument_1.WmlDocument; } });
|
|
17
|
+
var SmlDocument_1 = require("./SmlDocument");
|
|
18
|
+
Object.defineProperty(exports, "SmlDocument", { enumerable: true, get: function () { return SmlDocument_1.SmlDocument; } });
|
|
19
|
+
var PmlDocument_1 = require("./PmlDocument");
|
|
20
|
+
Object.defineProperty(exports, "PmlDocument", { enumerable: true, get: function () { return PmlDocument_1.PmlDocument; } });
|
|
21
|
+
var OpenXmlRelationship_1 = require("./OpenXmlRelationship");
|
|
22
|
+
Object.defineProperty(exports, "OpenXmlRelationship", { enumerable: true, get: function () { return OpenXmlRelationship_1.OpenXmlRelationship; } });
|
|
23
|
+
var Utility_1 = require("./Utility");
|
|
24
|
+
Object.defineProperty(exports, "Utility", { enumerable: true, get: function () { return Utility_1.Utility; } });
|
|
25
|
+
var OpenXmlPart_1 = require("./OpenXmlPart");
|
|
26
|
+
Object.defineProperty(exports, "OpenXmlPart", { enumerable: true, get: function () { return OpenXmlPart_1.OpenXmlPart; } });
|
|
27
|
+
var ContentType_1 = require("./ContentType");
|
|
28
|
+
Object.defineProperty(exports, "ContentType", { enumerable: true, get: function () { return ContentType_1.ContentType; } });
|
|
29
|
+
var RelationshipType_1 = require("./RelationshipType");
|
|
30
|
+
Object.defineProperty(exports, "RelationshipType", { enumerable: true, get: function () { return RelationshipType_1.RelationshipType; } });
|
|
31
|
+
var ltxmlts_1 = require("ltxmlts");
|
|
32
|
+
Object.defineProperty(exports, "XDocument", { enumerable: true, get: function () { return ltxmlts_1.XDocument; } });
|
|
33
|
+
Object.defineProperty(exports, "XDeclaration", { enumerable: true, get: function () { return ltxmlts_1.XDeclaration; } });
|
|
34
|
+
Object.defineProperty(exports, "XElement", { enumerable: true, get: function () { return ltxmlts_1.XElement; } });
|
|
35
|
+
Object.defineProperty(exports, "XAttribute", { enumerable: true, get: function () { return ltxmlts_1.XAttribute; } });
|
|
36
|
+
Object.defineProperty(exports, "XName", { enumerable: true, get: function () { return ltxmlts_1.XName; } });
|
|
37
|
+
Object.defineProperty(exports, "XNamespace", { enumerable: true, get: function () { return ltxmlts_1.XNamespace; } });
|
|
38
|
+
Object.defineProperty(exports, "XProcessingInstruction", { enumerable: true, get: function () { return ltxmlts_1.XProcessingInstruction; } });
|
|
39
|
+
var OpenXmlNamespacesAndNames_1 = require("./OpenXmlNamespacesAndNames");
|
|
40
|
+
Object.defineProperty(exports, "A", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.A; } });
|
|
41
|
+
Object.defineProperty(exports, "A14", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.A14; } });
|
|
42
|
+
Object.defineProperty(exports, "C", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.C; } });
|
|
43
|
+
Object.defineProperty(exports, "CDR", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.CDR; } });
|
|
44
|
+
Object.defineProperty(exports, "COM", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.COM; } });
|
|
45
|
+
Object.defineProperty(exports, "CP", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.CP; } });
|
|
46
|
+
Object.defineProperty(exports, "CT", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.CT; } });
|
|
47
|
+
Object.defineProperty(exports, "CUSTPRO", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.CUSTPRO; } });
|
|
48
|
+
Object.defineProperty(exports, "DC", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.DC; } });
|
|
49
|
+
Object.defineProperty(exports, "DCTERMS", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.DCTERMS; } });
|
|
50
|
+
Object.defineProperty(exports, "DGM", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.DGM; } });
|
|
51
|
+
Object.defineProperty(exports, "DGM14", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.DGM14; } });
|
|
52
|
+
Object.defineProperty(exports, "DIGSIG", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.DIGSIG; } });
|
|
53
|
+
Object.defineProperty(exports, "DS", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.DS; } });
|
|
54
|
+
Object.defineProperty(exports, "DSP", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.DSP; } });
|
|
55
|
+
Object.defineProperty(exports, "EP", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.EP; } });
|
|
56
|
+
Object.defineProperty(exports, "FLATOPC", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.FLATOPC; } });
|
|
57
|
+
Object.defineProperty(exports, "LC", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.LC; } });
|
|
58
|
+
Object.defineProperty(exports, "M", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.M; } });
|
|
59
|
+
Object.defineProperty(exports, "MC", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.MC; } });
|
|
60
|
+
Object.defineProperty(exports, "MDSSI", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.MDSSI; } });
|
|
61
|
+
Object.defineProperty(exports, "MP", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.MP; } });
|
|
62
|
+
Object.defineProperty(exports, "MV", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.MV; } });
|
|
63
|
+
Object.defineProperty(exports, "NoNamespace", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.NoNamespace; } });
|
|
64
|
+
Object.defineProperty(exports, "O", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.O; } });
|
|
65
|
+
Object.defineProperty(exports, "P", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.P; } });
|
|
66
|
+
Object.defineProperty(exports, "P14", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.P14; } });
|
|
67
|
+
Object.defineProperty(exports, "P15", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.P15; } });
|
|
68
|
+
Object.defineProperty(exports, "Pic", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.Pic; } });
|
|
69
|
+
Object.defineProperty(exports, "PKGREL", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.PKGREL; } });
|
|
70
|
+
Object.defineProperty(exports, "R", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.R; } });
|
|
71
|
+
Object.defineProperty(exports, "S", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.S; } });
|
|
72
|
+
Object.defineProperty(exports, "SL", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.SL; } });
|
|
73
|
+
Object.defineProperty(exports, "SLE", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.SLE; } });
|
|
74
|
+
Object.defineProperty(exports, "VML", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.VML; } });
|
|
75
|
+
Object.defineProperty(exports, "VT", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.VT; } });
|
|
76
|
+
Object.defineProperty(exports, "W", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.W; } });
|
|
77
|
+
Object.defineProperty(exports, "W10", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.W10; } });
|
|
78
|
+
Object.defineProperty(exports, "W14", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.W14; } });
|
|
79
|
+
Object.defineProperty(exports, "W3DIGSIG", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.W3DIGSIG; } });
|
|
80
|
+
Object.defineProperty(exports, "WP", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.WP; } });
|
|
81
|
+
Object.defineProperty(exports, "WP14", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.WP14; } });
|
|
82
|
+
Object.defineProperty(exports, "WPS", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.WPS; } });
|
|
83
|
+
Object.defineProperty(exports, "X", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.X; } });
|
|
84
|
+
Object.defineProperty(exports, "XDR", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.XDR; } });
|
|
85
|
+
Object.defineProperty(exports, "XDR14", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.XDR14; } });
|
|
86
|
+
Object.defineProperty(exports, "XM", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.XM; } });
|
|
87
|
+
Object.defineProperty(exports, "XSI", { enumerable: true, get: function () { return OpenXmlNamespacesAndNames_1.XSI; } });
|
|
88
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;;AAEH,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,6DAA4D;AAAnD,0HAAA,mBAAmB,OAAA;AAE5B,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AAEpB,uDAAsD;AAA7C,oHAAA,gBAAgB,OAAA;AAEzB,mCAAmH;AAA1G,oGAAA,SAAS,OAAA;AAAE,uGAAA,YAAY,OAAA;AAAE,mGAAA,QAAQ,OAAA;AAAE,qGAAA,UAAU,OAAA;AAAE,gGAAA,KAAK,OAAA;AAAE,qGAAA,UAAU,OAAA;AAAE,iHAAA,sBAAsB,OAAA;AACjG,yEAiDqC;AAhDnC,8GAAA,CAAC,OAAA;AACD,gHAAA,GAAG,OAAA;AACH,8GAAA,CAAC,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Script — read, write, and manipulate Office Open XML documents (docx, xlsx, pptx)",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"openxml",
|
|
15
|
+
"docx",
|
|
16
|
+
"xlsx",
|
|
17
|
+
"pptx",
|
|
18
|
+
"word",
|
|
19
|
+
"excel",
|
|
20
|
+
"powerpoint",
|
|
21
|
+
"office",
|
|
22
|
+
"ooxml"
|
|
23
|
+
],
|
|
24
|
+
"author": {
|
|
25
|
+
"name": "Eric White",
|
|
26
|
+
"email": "eric@ericwhite.com",
|
|
27
|
+
"url": "https://www.ericwhite.com"
|
|
28
|
+
},
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/EricWhiteDev/OpenXmlSdkTs.git"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/EricWhiteDev/OpenXmlSdkTs#readme",
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/EricWhiteDev/OpenXmlSdkTs/issues"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"jszip": "^3.10.1",
|
|
40
|
+
"ltxmlts": "1.0.5"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/jszip": "^3.4.0",
|
|
44
|
+
"typescript": "^5.0.0"
|
|
45
|
+
}
|
|
46
|
+
}
|