@ooxml-sanad/opc
v0.2.0
Published
Open Packaging Conventions: ZIP container, content types, relationship graph.
Readme
@ooxml/opc
Open Packaging Conventions (OPC) implementation: ZIP container parsing, content types, and relationship graph traversal.
Install
npm install @ooxml/opcOverview
Handles the container layer of OOXML files (.docx, .xlsx, .pptx):
- ZIP — Read/write OOXML ZIP packages using
fflate - Content types — Parse
[Content_Types].xmland map extensions to content types - Relationships — Build and query the
.relsrelationship graph - Part names — Normalized OCI-style part name handling
- Round-trip — Idempotent read-write cycles
Usage
import { readPackage, writePackage } from '@ooxml/opc';License
MIT
