@fz-labs/pptx-parser-win
v1.0.1
Published
Deterministic multimodal PPTX parser — converts PowerPoint files to structured JSON without AI
Maintainers
Readme
pptx-parser-win
📦 Unscoped version of @fz-labs/pptx-parser-win — Deterministic multimodal PPTX parser that converts PowerPoint files to structured JSON without AI.
⚠️ Migration Notice: If you're using
@fz-labs/pptx-parser-win, please migrate topptx-parser-win:npm uninstall @fz-labs/pptx-parser-win npm install pptx-parser-win
Repository: https://github.com/faouzi96/pptx-parser-win
Usage
Install:
npm install pptx-parser-winUse as a library:
import { parsePptx } from '@fz-labs/pptx-parser-win';
// 1. Write everything (JSON + media files on disk)
const presentationFiles = await parsePptx('presentation.pptx', './output', 'JSON_AND_MEDIA');
// 2. Write JSON metadata only (no image files on disk, images are base64-embedded)
const presentationJsonOnly = await parsePptx('presentation.pptx', './output', 'JSON_EMBEDDED');
// 3. Write absolutely nothing to disk (keep everything in memory, images are base64-embedded)
const presentationInMemory = await parsePptx('presentation.pptx', undefined, 'NONE');Run as a CLI:
npx pptx-parser presentation.pptx ./output JSON_AND_MEDIA
npx pptx-parser presentation.pptx ./output JSON_EMBEDDED
npx pptx-parser presentation.pptx ./output NONECLI arguments
<pptx-path>— required input file path[output-dir]— optional target folder for output files[output-mode]— optional output mode (JSON_AND_MEDIA|JSON_EMBEDDED|NONE), defaults toJSON_AND_MEDIA.
Output behavior
JSON_AND_MEDIA(default): Extracted media files are written tooutput/media/, slide renders tooutput/renders/, andpresentation.jsonis written to the output directory. Image elements in JSON contain apathproperty.JSON_EMBEDDED: Onlypresentation.jsonis written to the output directory (no image files are created). Image elements in JSON contain an embeddedbase64property.NONE: No files are written to disk at all. Image elements in the returnedPresentationobject contain an embeddedbase64property.
Package Contents
main:dist/index.jsbin:pptx-parser- exports root entrypoint and CLI from the same file
- compiled files are published from
dist/
