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

@stll/docx-utils

Package Overview
Dependencies
Maintainers
1
Versions
5
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.

Source
npmnpm
Version
0.1.1
Version published
Weekly downloads
12K
156.15%
Maintainers
1
Weekly downloads
 
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 10 Aug 2026

Related posts