🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@stll/docx-utils

Package Overview
Dependencies
Maintainers
1
Versions
2
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.0
Version published
Weekly downloads
1.4K
143.13%
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 29 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts