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 🙏

© 2025 – Pkg Stats / Ryan Hefner

feishu-test

v1.0.0

Published

这个测试工具集专门用于测试feishudocserver的`create_nice_feishu_doc`方法。

Readme

飞书文档服务器(feishudocserver)测试工具

这个测试工具集专门用于测试feishudocserver的create_nice_feishu_doc方法。

文件说明

  • run-test.sh - 主要的测试运行脚本,运行简单测试并记录结果
  • simple-test.js - 简化版本的测试脚本,易于理解和修改
  • test-nice-doc.js - 完整版测试脚本,包含更多功能和错误处理
  • logs/ - 目录,存放测试日志文件
  • results/ - 目录,存放测试结果输出

使用方法

快速测试

最简单的方法是运行bash脚本:

./run-test.sh

这将执行简单测试并在控制台显示结果,同时将结果保存到results/目录中。

直接运行测试脚本

如果需要更多控制或想查看更详细的输出,可以直接运行Node.js测试脚本:

# 运行简单测试
node simple-test.js

# 运行完整测试
node test-nice-doc.js

测试内容

这些脚本测试create_nice_feishu_doc方法,通过以下步骤:

  1. 启动feishudocserver服务器
  2. 等待服务器准备就绪
  3. 发送一个包含Markdown内容的请求
  4. 捕获并解析服务器响应
  5. 记录详细日志以便分析

修改测试

如果需要修改测试内容或配置,可以编辑simple-test.js文件中的以下部分:

  • 修改Markdown内容:查找testContent变量
  • 更改文件类型:修改fileType参数 (支持 '.md' 或 '.docx')
  • 添加文件夹Token:取消注释并设置folderToken参数

运行环境要求

  • Node.js (v14或更高版本)
  • NPM或NPX (用于安装和运行feishudocserver)
  • Bash (用于运行shell脚本)

故障排除

如果测试失败,请检查:

  1. feishudocserver是否能正常安装和运行
  2. 网络连接是否正常
  3. 飞书API访问是否正常
  4. 查看日志文件获取详细错误信息