npx skills add https://github.com/xixu-me/skills --skill xdrop使用此技能目录中捆绑的脚本。
scripts/upload.mjs — 将本地文件或目录上传到 Xdrop 服务器并打印分享链接scripts/download.mjs — 下载 Xdrop 分享链接,在本地解密并保存文件环境要求:
bun scripts/upload.mjs --server <xdrop-site-url> <file-or-directory> [...]
在相关情况下优先使用这些标志:
--quiet:抑制进度输出,保持标准输出干净--json:返回 transferId、shareUrl 和 广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
expiresAt--expires-in <seconds>:选择支持的过期时间--api-url <url>:覆盖默认的 <server>/api/v1--name <value>:设置传输显示名称--concurrency <n>:限制每个文件的并行上传数实用示例:
bun scripts/upload.mjs --server http://localhost:8080 ./dist/report.pdf
bun scripts/upload.mjs --server http://localhost:8080 --quiet ./archive.zip
bun scripts/upload.mjs --server http://localhost:8080 --expires-in 600 --json ./notes.txt
如果用户需要验证,可以上传一个小的临时文件,然后确认公共传输 API 或浏览器可以打开返回的链接。
需要完整的分享链接,包括 #k=...。没有片段密钥,传输内容将无法解密。
bun scripts/download.mjs "<share-url>"
在相关情况下优先使用这些标志:
--output <dir>:选择目标目录--quiet:抑制进度输出,保持标准输出干净--json:返回 transferId、outputRoot 和保存的文件路径--api-url <url>:覆盖默认的 <share-origin>/api/v1实用示例:
bun scripts/download.mjs "http://localhost:8080/t/abc123#k=..."
bun scripts/download.mjs --output ./downloads "http://localhost:8080/t/abc123#k=..."
bun scripts/download.mjs --quiet --json --output ./downloads "http://localhost:8080/t/abc123#k=..."
默认情况下,下载器会将文件写入 ./xdrop-<transferId> 并保留清单中的相对路径。
#k=... 片段的下载链接无法解密。请索要完整的原始分享 URL。--quiet。否则进度日志会输出到标准错误,但最终结果仍然重要。--quiet。每周安装量
4.3K
代码库
GitHub 星标数
1
首次出现
今天
安全审计
安装于
openclaw4.3K
codex4.3K
warp4.3K
antigravity4.3K
github-copilot4.3K
kimi-cli4.3K
Use the bundled scripts inside this skill directory.
scripts/upload.mjs — Upload local files or directories to an Xdrop server and print the share linkscripts/download.mjs — Download an Xdrop share link, decrypt it locally, and save the filesEnvironment requirements:
bun scripts/upload.mjs --server <xdrop-site-url> <file-or-directory> [...]
Prefer these flags when relevant:
--quiet: suppress progress output and keep stdout clean--json: return transferId, shareUrl, and expiresAt--expires-in <seconds>: choose a supported expiry--api-url <url>: override the default <server>/api/v1--name <value>: set the transfer display name--concurrency <n>: limit parallel uploads per fileUseful examples:
bun scripts/upload.mjs --server http://localhost:8080 ./dist/report.pdf
bun scripts/upload.mjs --server http://localhost:8080 --quiet ./archive.zip
bun scripts/upload.mjs --server http://localhost:8080 --expires-in 600 --json ./notes.txt
If the user wants verification, upload a small temporary file and then confirm the public transfer API or browser can open the returned link.
Require the full share link, including #k=.... Without the fragment key, the transfer cannot be decrypted.
bun scripts/download.mjs "<share-url>"
Prefer these flags when relevant:
--output <dir>: choose the destination directory--quiet: suppress progress output and keep stdout clean--json: return transferId, outputRoot, and saved file paths--api-url <url>: override the default <share-origin>/api/v1Useful examples:
bun scripts/download.mjs "http://localhost:8080/t/abc123#k=..."
bun scripts/download.mjs --output ./downloads "http://localhost:8080/t/abc123#k=..."
bun scripts/download.mjs --quiet --json --output ./downloads "http://localhost:8080/t/abc123#k=..."
By default the downloader writes to ./xdrop-<transferId> and preserves the manifest's relative paths.
#k=... fragment is not decryptable. Ask for the full original share URL.--quiet whenever another command or caller needs to capture stdout. Progress logs otherwise go to stderr, but the final result still matters.--quiet when another command or script needs to capture stdout.Weekly Installs
4.3K
Repository
GitHub Stars
1
First Seen
Today
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
openclaw4.3K
codex4.3K
warp4.3K
antigravity4.3K
github-copilot4.3K
kimi-cli4.3K
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
138,300 周安装