
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@usejunior/docx-core
Advanced tools
OOXML (.docx) core library: primitives, document generation, and track changes
Core Safe Docx library for brownfield editing and comparison of existing .docx files.
@usejunior/docx-core is the production engine behind Safe Docx. It is designed for surgical operations on existing Word documents where formatting fidelity and deterministic behavior matter.
Primary capabilities:
Default comparison is pure TypeScript atomizer (engine: "auto" -> atomizer).
Internal benchmark code exists for maintainer analysis, but benchmarking is not a user-facing feature.
npm install @usejunior/docx-core
import { readFile, writeFile } from 'node:fs/promises';
import { compareDocuments } from '@usejunior/docx-core';
const original = await readFile('./original.docx');
const revised = await readFile('./revised.docx');
const result = await compareDocuments(original, revised, {
author: 'Comparison',
// engine defaults to "auto" (atomizer)
});
await writeFile('./output.redline.docx', result.document);
console.log(result.engine, result.stats);
atomizer (default via auto): primary production pathwmlcomparer: not available through supported programmatic API usageRuntime dependencies are intentionally small:
@xmldom/xmldom for XML DOM handlingjszip for DOCX zip container handlingNo native binaries, and no .NET prerequisite for supported runtime API usage.
In-repo automated fixtures currently include:
@usejunior/docx-core is designed to support complex legal/business document classes such as:
If your primary use case is generating new documents from scratch, use a generation-oriented package such as docx.
npm run build -w @usejunior/docx-core
npm run test:run -w @usejunior/docx-core
npm run lint -w @usejunior/docx-core
Apache-2.0
FAQs
OOXML (.docx) core library: primitives, document generation, and track changes
The npm package @usejunior/docx-core receives a total of 1,758 weekly downloads. As such, @usejunior/docx-core popularity was classified as popular.
We found that @usejunior/docx-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.