New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@stll/docx-utils

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stll/docx-utils

Low-level helpers for reading and writing DOCX/OOXML zip packages: text and binary extraction, relationship and content-type management, and namespace constants.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

@stll/docx-utils

Low-level helpers for reading and writing DOCX/OOXML zip packages.

The package wraps the mechanical parts of working with a DOCX file: loading and repacking the underlying zip, extracting text or binary parts, managing relationships and content types, and the OOXML namespace constants those operations need.

import { loadDocx, extractText, ensureRelationship } from "@stll/docx-utils";

const zip = await loadDocx(bytes);
const text = await extractText(zip, "word/document.xml");

Install

bun add @stll/docx-utils

Exports

  • OOXML_NS / OoxmlPrefix — OOXML namespace constants and prefixes.
  • loadDocx, repackZip, extractText, extractBinary, DOCX_COMPRESSION — zip-level read and write helpers.
  • findNextRId, ensureContentType, ensureRelationship — relationship and content-type management.

License

Apache-2.0

Keywords

docx

FAQs

Package last updated on 13 Sep 2026

Related posts