{"id":15647793,"url":"https://github.com/linuxsuren/http-downloader","last_synced_at":"2025-04-04T06:08:49.885Z","repository":{"id":37852283,"uuid":"319322985","full_name":"LinuxSuRen/http-downloader","owner":"LinuxSuRen","description":"A download tool that is baked for the GitHub release assets. 专注于 GitHub 项目的工具安装","archived":false,"fork":false,"pushed_at":"2024-12-26T11:38:29.000Z","size":900,"stargazers_count":45,"open_issues_count":46,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T05:12:20.570Z","etag":null,"topics":["beginners-friendly","downloader","golang","hacktoberfest","http","http-downloader"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinuxSuRen.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"open_collective":"http-downloader"}},"created_at":"2020-12-07T13:07:32.000Z","updated_at":"2024-12-27T01:39:17.000Z","dependencies_parsed_at":"2024-01-04T10:39:20.504Z","dependency_job_id":"95978577-5c29-47cc-be61-d3e9604886fb","html_url":"https://github.com/LinuxSuRen/http-downloader","commit_stats":{"total_commits":229,"total_committers":9,"mean_commits":"25.444444444444443","dds":0.3493449781659389,"last_synced_commit":"de7232bfd6fbd58c6a80fc4fba6b444561a9ddaf"},"previous_names":[],"tags_count":98,"template":false,"template_full_name":"LinuxSuRen/github-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fhttp-downloader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fhttp-downloader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fhttp-downloader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinuxSuRen%2Fhttp-downloader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinuxSuRen","download_url":"https://codeload.github.com/LinuxSuRen/http-downloader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128751,"owners_count":20888235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["beginners-friendly","downloader","golang","hacktoberfest","http","http-downloader"],"created_at":"2024-10-03T12:21:08.533Z","updated_at":"2025-04-04T06:08:49.864Z","avatar_url":"https://github.com/LinuxSuRen.png","language":"Go","funding_links":["https://opencollective.com/http-downloader"],"categories":[],"sub_categories":[],"readme":"[![](https://goreportcard.com/badge/linuxsuren/http-downloader)](https://goreportcard.com/report/linuxsuren/github-go)\n[![](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/linuxsuren/http-downloader)\n[![Contributors](https://img.shields.io/github/contributors/linuxsuren/http-downloader.svg)](https://github.com/linuxsuren/github-go/graphs/contributors)\n[![GitHub release](https://img.shields.io/github/release/linuxsuren/http-downloader.svg?label=release)](https://github.com/linuxsuren/github-go/releases/latest)\n![GitHub All Releases](https://img.shields.io/github/downloads/linuxsuren/http-downloader/total)\n\n# 入门\n\n`hd` 是一个基于 HTTP 协议的下载工具。\n\n通过命令：`brew install linuxsuren/linuxsuren/hd` 来安装\n\n或者，对于 Linux 用户可以直接通过命令下载：\n```shell\ncurl -L https://github.com/linuxsuren/http-downloader/releases/latest/download/hd-linux-amd64.tar.gz | tar xzv\nmv hd /usr/local/bin\n```\n\n想要浏览该项目的代码吗？[GitPod](https://gitpod.io/#https://github.com/linuxsuren/http-downloader) 绝对可以帮助你！\n\n# 用法\n\n```shell\nhd get https://github.com/jenkins-zh/jenkins-cli/releases/latest/download/jcli-linux-amd64.tar.gz --thread 6\n```\n\n或者，用一个更加简便的办法：\n\n```shell\nhd get jenkins-zh/jenkins-cli/jcli -t 6\n```\n\n获取，你也可以安装一个来自 GitHub 的软件包：\n\n```shell\nhd install jenkins-zh/jenkins-cli/jcli -t 6\n```\n\n或者，你也可以从 GitHub 上下载预发布的二进制包：\n\n```shell\nhd get --pre ks\n```\n\n# 功能\n\n* 基于 HTTP 协议下载文件的 Golang 工具库\n* 多线程\n* 断点续传 (TODO)\n* 对 GitHub release 文件下载（安装）友好\n\n## 使用多阶段构建\n你想要在 Docker 构建中下载工具吗？这个很容易的，请查看下面的例子：\n\n```dockerfile\nFROM ghcr.io/linuxsuren/hd:v0.0.42 as downloader\nRUN hd install kubesphere-sigs/ks@v0.0.50\n\nFROM alpine:3.10\nCOPY --from=downloader /usr/local/bin/ks /usr/local/bin/ks\nCMD [\"ks\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxsuren%2Fhttp-downloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinuxsuren%2Fhttp-downloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinuxsuren%2Fhttp-downloader/lists"}