@mdgate/containers
v0.6.25
Published
mdgate container parsing: ZIP/OPC packages, OLE compound files, XML
Readme
@mdgate/containers
Internal ZIP/OPC, OLE, and XML helpers for mdgate converters.
This package is a shared library used by format converters. Install a converter package (for example @mdgate/docx) or @mdgate/converters instead of depending on this directly.
What it provides
- ZIP / OPC package reading
- OLE compound files (CFB)
- a namespace-aware XML parser
- container-level format detection (which Office, ODF, EPUB, or iWork package a ZIP or OLE file is)
Format packages use these primitives. Applications should not need them.
Need a complete reader?
npm install @mdgate/convertersimport { toMarkdown } from '@mdgate/converters';
const markdown = await toMarkdown(bytes, {
path: filename,
});@mdgate/containers is part of the open-source mdgate/converters project.
For AI agents, the same converter architecture can be used to extend read_file from text files to real-world document formats.
License
MIT
