@deckflow/deck2html
v0.7.1
Published
PPTX / DOCX to HTML converter (Free / Licensed / Cloud)
Readme
@deckflow/deck2html
PPTX / DOCX → HTML converter (proprietary). One package; Free vs Licensed is selected by a signed .lic at runtime, or use Cloud for remote conversion.
Product modes
| Mode | How | Behavior |
| --- | --- | --- |
| auto (default) | Omit --mode, or --mode auto | Valid local .lic → same as license; otherwise free |
| free | --mode free | Force Free local (Community degradations) |
| license | --mode license (requires valid .lic) | Full local engine (alias: licensed) |
| cloud | --mode cloud | Remote Licensed conversion via DeckFlow Cloud |
Install
npm install @deckflow/deck2htmlThe installer selects a platform package such as @deckflow/deck2html-darwin-arm64. The main package's postinstall checks that the platform package and its executable are present. If this check fails because optional dependencies were omitted, reinstall with npm install --include=optional @deckflow/deck2html.
Usage
# Free local (Community degradations when no valid license)
npx deck2html deck.pptx -o ./out
# Licensed local
npx deck2html deck.pptx -o ./out --license ~/.deckflow/deck2html.lic
# defaults also accept ~/.deckflow/deckuse.lic (first valid wins)
# or: export DECK2HTML_LICENSE=~/.deckflow/deck2html.lic
# Force Free even with a valid license
npx deck2html deck.pptx -o ./out --mode free
# Require Licensed local
npx deck2html deck.pptx -o ./out --mode license
# Cloud (full fidelity via remote Licensed worker)
npx deck2html deck.pptx -o ./out --mode cloud
# Auth for higher cloud quota (shares ~/.deckflow/credentials with html2deck)
npx deck2html auth login
export DECK2HTML_API_KEY=…const { getBinaryPath } = require('@deckflow/deck2html');
const { spawnSync } = require('child_process');
spawnSync(getBinaryPath(), ['deck.pptx', '-o', './out'], { stdio: 'inherit' });| Flag / env | Meaning |
|---|---|
| --license <path> | Optional .lic → Licensed when valid (unless --mode free) |
| DECK2HTML_LICENSE | License path env |
| --mode auto\|free\|license\|cloud | Default auto from certificate. cloud = remote convert; free forces Free; license requires a valid .lic (alias: licensed) |
| DECK2HTML_API_KEY | Cloud API key (optional; guest mode otherwise) |
| DECK2HTML_CONFIG_DIR | Credentials dir (default ~/.deckflow) |
| --check-license | JSON probe; exit 0 if valid (machineBound / machineId when bound) |
| fingerprint | Print 64-char hex machine id for optional single-machine .lic binding |
Machine binding is optional when the .lic is issued (via @deckflow/deck-secure). Portable licenses omit it.
Platform packages
| Package | OS | Arch |
|---|---|---|
| @deckflow/deck2html-darwin-arm64 | macOS | arm64 |
| @deckflow/deck2html-darwin-x64 | macOS | x64 |
| @deckflow/deck2html-linux-x64 | Linux | x64 |
| @deckflow/deck2html-win32-x64 | Windows | x64 |
License
Proprietary. See LICENSE. Free mode may be used under the limited terms in that file; full local features require a DeckFlow-issued .lic; Cloud mode is governed by DeckFlow Cloud terms.
Links
- npm: https://www.npmjs.com/package/@deckflow/deck2html
- Issues: https://github.com/deckflow/deck2html/issues
Runtime distribution and restricted hosts
Platform packages ship a complete self-contained runtime under runtime/. No system .NET installation or first-launch bundle extraction is needed. Keep the entire directory when copying a deployment; copying only the apphost is insufficient. Use getBinaryPath() instead of assuming a platform package root binary path. CLI and conversion API signatures are unchanged.
Legacy single-file builds honor DOTNET_BUNDLE_EXTRACT_BASE_DIR; their first startup may require rename/delete permissions as well as write permissions. Changing to another writable directory does not resolve an operation-level restriction. Do not automatically retry denied operations or warm caches during installation.
Maintainers: run bash scripts/build-native.sh --rid <RID> then node scripts/test-runtime-package.mjs on each target OS/architecture. This packs and installs the real npm payload and retains its results in artifacts/runtime-package-*. The four-platform runtime-package workflow must pass before release. Release deck2html first, then raise deckuse's dependency minimum and regenerate its lockfile against the published version.
