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-readdoc

v0.1.0

Published

n8n community node for reading doc/docx documents

Readme

n8n-nodes-readdoc

n8n-nodes-readdoc

这是一个用于读取doc/docx文档内容的n8n社区节点。

功能特性

  • 支持读取 .doc 和 .docx 文件
  • 多种输出格式:纯文本、HTML、Markdown
  • 提取文档元数据(字数统计、字符数等)
  • 保持原始二进制数据(可选)
  • 错误处理和继续执行选项

安装

# 在你的n8n实例中安装
npm install n8n-nodes-readdoc

使用方法

  1. 将包含doc/docx文件的二进制数据传递给节点
  2. 选择输出格式(纯文本、HTML或Markdown)
  3. 配置其他选项(如是否包含样式信息)
  4. 节点将输出提取的文档内容和元数据

输入数据格式

节点需要包含二进制数据的输入,二进制数据应该是doc或docx文件。

输出数据格式

{
  "content": "提取的文档内容",
  "fileName": "document.docx",
  "fileType": "docx",
  "format": "text",
  "metadata": {},
  "wordCount": 150,
  "characterCount": 1200
}

支持的文件格式

  • .doc - Microsoft Word 97-2003文档
  • .docx - Microsoft Word 2007+文档

开发

本项目使用TypeScript开发,基于n8n节点开发框架。

构建

pnpm run build

开发模式

pnpm run dev

代码格式化

pnpm run format

代码检查

pnpm run lint

依赖

  • mammoth - 用于处理.docx文件
  • textract - 用于处理.doc文件

许可证

MIT

贡献

欢迎提交Pull Request和Issue!