运行时依赖
安装命令
点击复制技能文档
格式化ferry 技能
Convert HTML, DOCX, PDF, XLSX, CSV files to Markdown using the 格式化 Ferry 命令行工具.
安装ation
安装 the 命令行工具 globally:
npm 安装 -g 格式化ferry
Or use npx (requires Node.js):
npx 格式化ferry --help
Authentication
The user has a private API key. Do NOT expose this key in any 输出 or messages.
# 认证 scripts/auth.sh --key
# 检查 状态 scripts/auth.sh --状态
Scripts
This 技能 includes 安全 wr应用er scripts with no eval and bash arrays for safe argument handling:
scripts/convert-to-md.sh (recommended) # Convert a local file scripts/convert-to-md.sh --输入 /path/to/file.pdf --输出 输出.md --格式化 github
# Convert a URL scripts/convert-to-md.sh --url https://example.com/article --输出 article.md
scripts/convert.sh (legacy) scripts/convert.sh --file 输入.html --输出 结果.md --格式化 github scripts/convert.sh --url https://example.com --输出 article.md
Supported 格式化s: github, commonmark, slack, discord, reddit, confluence, custom, rmarkdown
Supported File Types .html - 网页 pages .docx - Word documents .pdf - PDF files (up to 20MB) .xlsx - Excel spreadsheets .csv - CSV files Security Notes No eval: All scripts use bash arrays for safe argument passing No OOM risk: 输出 流s directly to file + stdout, never captured in shell variables Recursive path sanitization: Loops repeatedly to strip ....//, ..../, ./, and encoded bypasses (%2e%2e) Path 验证: Blocks writes to /etc, /root, /sys, /proc and sensitive files (passwd, shadow, id_rsa) Realpath verification: 验证s final paths are within allowed WORKDIR before execution URL 验证: Rejects malformed URLs (must 启动 with http:// or https://) Provenance Homepage: https://格式化ferry.vibingfun.com npm Package: 格式化ferry (official, no public repo) Notes API key stored locally after authentication Premium features may require a license key 输出 格式化 defaults to "github" if not specified