npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-docx2md2html

v0.1.1

Published

n8n community node to convert between DOCX, Markdown, and HTML formats

Readme

n8n-nodes-docx2md

An n8n community node for converting between DOCX, Markdown, and HTML formats — in both directions.

n8n is a fair-code licensed workflow automation platform.

Installation Operations Compatibility Usage Resources Version history

Installation

Follow the installation guide in the n8n community nodes documentation.

Note: This node uses external npm dependencies (mammoth, marked, html-to-docx) and therefore runs on self-hosted n8n only. It is not compatible with n8n Cloud.

Operations

| Operation | Input | Output | | ------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | DOCX → Markdown | Binary DOCX file | Markdown text (JSON field) + optional binary .md file | | DOCX → HTML | Binary DOCX file | HTML text (JSON field) + optional binary .html file | | Markdown → DOCX | Markdown text (typed, JSON field, or binary .md file) | Binary DOCX file | | HTML → DOCX | HTML text (typed, JSON field, or binary .html file) | Binary DOCX file |

DOCX → Markdown

Converts a DOCX binary file to Markdown text using mammoth.

| Parameter | Description | | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------- | | Input Binary Field | Name of the binary field holding the DOCX file (default: data) | | Output JSON Field | JSON property name to store the Markdown string (default: markdown) | | Extract Images | When enabled, extracts embedded images; the output field becomes { markdown, images } with ![](image_1) references | | Output Binary .md File | Also attach the Markdown as a binary .md file | | Output Markdown Binary Field | Binary field name for the output .md file (default: markdown) |

DOCX → HTML

Converts a DOCX binary file to HTML using mammoth.

| Parameter | Description | | ------------------------ | ----------------------------------------------------------------------------------------------------------- | | Input Binary Field | Name of the binary field holding the DOCX file (default: data) | | Output JSON Field | JSON property name to store the HTML string (default: html) | | Extract Images | When enabled, extracts embedded images; the output field becomes { html, images } with image_1 src keys | | Output Binary .html File | Also attach the HTML as a binary .html file | | Output HTML Binary Field | Binary field name for the output .html file (default: html) |

Markdown → DOCX

Converts Markdown text to a DOCX file using marked + html-to-docx.

| Parameter | Description | | --------------------------------------------------- | ------------------------------------------------------------------------------------------- | | Markdown Source | Where to read Markdown from: Enter Markdown (editor), JSON Text Field, or Binary File | | Markdown / Markdown Field Name / Input Binary Field | Depends on the chosen source | | Output DOCX Binary Field | Binary field name for the generated DOCX file (default: data) | | Output File Name | File name for the DOCX (default: output.docx) |

HTML → DOCX

Converts HTML text to a DOCX file using html-to-docx.

| Parameter | Description | | ------------------------------------------- | ----------------------------------------------------------------------------------- | | HTML Source | Where to read HTML from: Enter HTML (editor), JSON Text Field, or Binary File | | HTML / HTML Field Name / Input Binary Field | Depends on the chosen source | | Output DOCX Binary Field | Binary field name for the generated DOCX file (default: data) | | Output File Name | File name for the DOCX (default: output.docx) |

Compatibility

  • Requires self-hosted n8n (not compatible with n8n Cloud due to external dependencies)
  • Tested with n8n v1.x

Usage

Convert a DOCX attachment to Markdown:

  1. Add a trigger that receives a DOCX file (e.g. Email trigger or HTTP webhook)
  2. Add the DOCX ↔ Markdown ↔ HTML node
  3. Set Operation to DOCX → Markdown
  4. Set Input Binary Field to the binary field name holding the DOCX
  5. The output item will contain a markdown JSON field with the converted text

Generate a DOCX from Markdown:

  1. Provide Markdown text via any upstream node
  2. Add the DOCX ↔ Markdown ↔ HTML node
  3. Set Operation to Markdown → DOCX
  4. Set Markdown Source to JSON Text Field and enter the field name
  5. The output item will contain a binary DOCX file in the configured output field

Resources

Version history

0.1.0

Initial release. Supports four operations:

  • DOCX → Markdown
  • DOCX → HTML
  • Markdown → DOCX
  • HTML → DOCX