New:Socket for Asana Is Now Available.Learn more
Get Started

@usejunior/docx-core

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

latest
Source
npmnpm
Version
0.20.1
Version published
Maintainers
1
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 20 Aug 2026

Related posts