Convert Docx Documents Into Clean Html For Publishing Workflows Mammoth
ASecurity
Use Mammoth when an agent needs to turn a .docx file into simple HTML that preserves semantic structure instead of Word-specific styling. This is for ingestion and publishing workflows, not for full document editing or perfect visual fidelity.
36 stars
0 votes
0 copies
1 view
Added June 8, 2026
ai-agentspythongojavanodegitsecuritydocumentation
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Are you the author of Convert Docx Documents Into Clean Html For Publishing Workflows Mammoth?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-convert-docx-documents-into-clean-html-for-publish)
---
name: "Convert DOCX documents into clean HTML for publishing workflows with Mammoth"
slug: "convert-docx-documents-into-clean-html-for-publishing-workflows-mammoth"
description: "Use Mammoth when an agent needs to turn a .docx file into simple HTML that preserves semantic structure instead of Word-specific styling. This is for ingestion and publishing workflows, not for full document editing or perfect visual fidelity."
github_stars: 6167
verification: "security_reviewed"
source: "https://github.com/mwilliamson/mammoth.js"
author: "mwilliamson"
category: "Data Extraction & Transformation"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "mwilliamson/mammoth.js"
github_stars: 6167
npm_package: "mammoth"
npm_weekly_downloads: 18347789
---
# Convert DOCX documents into clean HTML for publishing workflows with Mammoth
Use Mammoth when an agent needs to turn a .docx file into simple HTML that preserves semantic structure instead of Word-specific styling. This is for ingestion and publishing workflows, not for full document editing or perfect visual fidelity.
## Prerequisites
Node.js, DOCX files
## Installation
Use the upstream install or setup path that matches your environment:
- Run make setup
- npm install mammoth
Requirements and caveats from upstream:
- [Python](https://github.com/mwilliamson/python-mammoth).
- Available [on PyPI](https://pypi.python.org/pypi/mammoth).
- In node.js and the browser, mammoth can be required in the usual way:
Basic usage or getting-started notes:
- ## Other supported platforms
- [WordPress](https://wordpress.org/plugins/mammoth-docx-converter/).
- [Java/JVM](https://github.com/mwilliamson/java-mammoth).
- Source: https://github.com/mwilliamson/mammoth.js
- Extracted from upstream docs: https://raw.githubusercontent.com/mwilliamson/mammoth.js/HEAD/README.md
## Documentation
- https://mike.zwobble.org/projects/mammoth/
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/convert-docx-documents-into-clean-html-for-publishing-workflows-mammoth/)