@deckflow/office2html 0.3.3 → 0.3.4

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.
Files changed (3) hide show
  1. package/README.md +42 -0
  2. package/index.d.ts +4 -0
  3. package/package.json +13 -6
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @deckflow/office2html
2
+
3
+ Convert PowerPoint (`.pptx`) and Word (`.docx`) to HTML. Platform binaries are shipped as optional dependencies and selected automatically for the current OS/CPU.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @deckflow/office2html
9
+ ```
10
+
11
+ Do not omit optional dependencies (`--omit=optional` / `--no-optional`); the native binary lives in a platform package such as `@deckflow/office2html-darwin-arm64`.
12
+
13
+ ## Usage
14
+
15
+ Authorized use is as a dependency of [`@deckflow/render`](https://www.npmjs.com/package/@deckflow/render). Direct standalone use requires separate authorization.
16
+
17
+ ```bash
18
+ npx office2html deck.pptx -o ./out
19
+ ```
20
+
21
+ ```js
22
+ const { getBinaryPath } = require('@deckflow/office2html');
23
+ // spawn the native CLI at getBinaryPath()
24
+ ```
25
+
26
+ ## Supported platforms
27
+
28
+ | Package | OS | CPU |
29
+ |---|---|---|
30
+ | `@deckflow/office2html-darwin-arm64` | macOS | arm64 |
31
+ | `@deckflow/office2html-darwin-x64` | macOS | x64 |
32
+ | `@deckflow/office2html-linux-x64` | Linux | x64 |
33
+ | `@deckflow/office2html-win32-x64` | Windows | x64 |
34
+
35
+ ## Links
36
+
37
+ - Repository / docs: https://github.com/deckflow/office2html
38
+ - npm: https://www.npmjs.com/package/@deckflow/office2html
39
+
40
+ ## License
41
+
42
+ Proprietary. See [LICENSE](./LICENSE).
package/index.d.ts CHANGED
@@ -5,6 +5,10 @@ export interface ConvertOptions {
5
5
  noPlayer?: boolean;
6
6
  notes?: boolean;
7
7
  includeHiddenSlides?: boolean;
8
+ /** Emit slide masters under masters/ (not in player navigation). */
9
+ includeMasters?: boolean;
10
+ /** Emit slide layouts under layouts/ (not in player navigation). */
11
+ includeLayouts?: boolean;
8
12
  /** 1-based page filter, e.g. "1,2,5-10". */
9
13
  pages?: string;
10
14
  noLazySlides?: boolean;
package/package.json CHANGED
@@ -1,13 +1,19 @@
1
1
  {
2
2
  "name": "@deckflow/office2html",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "description": "PPTX to HTML converter (proprietary; authorized use via @deckflow/render)",
6
+ "homepage": "https://github.com/deckflow/office2html#readme",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/deckflow/office2html.git",
10
+ "directory": "packages/office2html"
11
+ },
6
12
  "optionalDependencies": {
7
- "@deckflow/office2html-win32-x64": "0.3.3",
8
- "@deckflow/office2html-linux-x64": "0.3.3",
9
- "@deckflow/office2html-darwin-arm64": "0.3.3",
10
- "@deckflow/office2html-darwin-x64": "0.3.3"
13
+ "@deckflow/office2html-linux-x64": "0.3.4",
14
+ "@deckflow/office2html-darwin-arm64": "0.3.4",
15
+ "@deckflow/office2html-darwin-x64": "0.3.4",
16
+ "@deckflow/office2html-win32-x64": "0.3.4"
11
17
  },
12
18
  "main": "index.js",
13
19
  "types": "index.d.ts",
@@ -15,7 +21,8 @@
15
21
  "index.js",
16
22
  "index.d.ts",
17
23
  "bin",
18
- "LICENSE"
24
+ "LICENSE",
25
+ "README.md"
19
26
  ],
20
27
  "bin": {
21
28
  "office2html": "bin/office2html.js"