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

@usejunior/docx-core

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usejunior/docx-core

OOXML (.docx) core library: primitives, document generation, and track changes

Source
npmnpm
Version
0.17.0
Version published
Weekly downloads
1.6K
-57.09%
Maintainers
1
Weekly downloads
 
Created
Source

@usejunior/docx-core

OOXML primitives and DOCX generation in TypeScript.

npm Apache 2.0

Install

npm install @usejunior/docx-core

Example

import { writeFile } from 'node:fs/promises';
import { generateDocx } from '@usejunior/docx-core';

const document = await generateDocx({
  sections: [{
    blocks: [{
      kind: 'paragraph',
      runs: [{ kind: 'text', text: 'Hello' }],
    }],
  }],
});

await writeFile('hello.docx', document);

DocumentSpec supports sections, headers and footers, fields, styles, tables, numbering, and comments. The supported runtime uses jszip and @xmldom/xmldom; it does not require Word, LibreOffice, Python, or .NET.

For two-document comparison, use @usejunior/docx-compare. For agent-driven editing, use @usejunior/safe-docx.

See the repository architecture, support contract, and package source and examples.

Keywords

docx

FAQs

Package last updated on 23 Jul 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