{"id":41345058,"url":"https://github.com/zjxxxxxxxxx/axios-miniprogram","last_synced_at":"2026-01-23T06:56:25.852Z","repository":{"id":49038897,"uuid":"253062676","full_name":"zjxxxxxxxxx/axios-miniprogram","owner":"zjxxxxxxxxx","description":"基于 Promise 的 HTTP 请求库，适用于各大小程序平台。","archived":false,"fork":false,"pushed_at":"2024-03-20T12:30:38.000Z","size":766,"stargazers_count":222,"open_issues_count":0,"forks_count":12,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-09-21T06:29:06.183Z","etag":null,"topics":["axios","mini","miniprogram"],"latest_commit_sha":null,"homepage":"https://axios-miniprogram.com","language":"TypeScript","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/zjxxxxxxxxx.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2020-04-04T17:47:39.000Z","updated_at":"2025-09-19T01:30:55.000Z","dependencies_parsed_at":"2022-08-29T01:11:37.948Z","dependency_job_id":"ef99799d-e352-4248-9d74-53565359877d","html_url":"https://github.com/zjxxxxxxxxx/axios-miniprogram","commit_stats":null,"previous_names":["zjxxxxxxxxx/axios-miniprogram","zjx0905/axios-miniprogram","early-autumn/axios-miniprogram","fluffff/axios-miniprogram"],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/zjxxxxxxxxx/axios-miniprogram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjxxxxxxxxx%2Faxios-miniprogram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjxxxxxxxxx%2Faxios-miniprogram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjxxxxxxxxx%2Faxios-miniprogram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjxxxxxxxxx%2Faxios-miniprogram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zjxxxxxxxxx","download_url":"https://codeload.github.com/zjxxxxxxxxx/axios-miniprogram/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjxxxxxxxxx%2Faxios-miniprogram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["axios","mini","miniprogram"],"created_at":"2026-01-23T06:56:25.765Z","updated_at":"2026-01-23T06:56:25.834Z","avatar_url":"https://github.com/zjxxxxxxxxx.png","language":"TypeScript","readme":"\u003ch1 align=\"center\"\u003eaxios-miniprogram\u003c/h1\u003e\n\n\u003cp style=\"text-align: center;\" align=\"center\"\u003e\n  \u003ca style=\"display: inline-block;margin-left: 5px;\" href=\"https://github.com/zjxxxxxxxxx/axios-miniprogram/actions/workflows/ci.yml\"\u003e\n    \u003cimg src=\"https://github.com/zjxxxxxxxxx/axios-miniprogram/actions/workflows/ci.yml/badge.svg\" alt=\"ci\"/\u003e\n  \u003c/a\u003e\n  \u003ca style=\"display: inline-block;margin-left: 5px;\" href=\"https://codecov.io/gh/zjxxxxxxxxx/axios-miniprogram\" \u003e \n    \u003cimg src=\"https://codecov.io/gh/zjxxxxxxxxx/axios-miniprogram/branch/main/graph/badge.svg?token=WIQVYX2WIK\" alt=\"codecov\"/\u003e \n  \u003c/a\u003e\n  \u003ca style=\"display: inline-block;margin-left: 5px;\" href=\"https://opensource.org/licenses/MIT\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/zjxxxxxxxxx/axios-miniprogram\" alt=\"license\"/\u003e\n  \u003c/a\u003e\n  \u003ca style=\"display: inline-block;margin-left: 5px;\" href=\"https://www.npmjs.org/package/axios-miniprogram\"\u003e\n    \u003cimg src=\"https://img.shields.io/bundlephobia/min/axios-miniprogram\" alt=\"npm bundle size\"/\u003e\n  \u003c/a\u003e \n  \u003ca style=\"display: inline-block;\" href=\"https://www.npmjs.org/package/axios-miniprogram\"\u003e\n    \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/axios-miniprogram\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp style=\"text-align: center;\" align=\"center\"\u003e\n  \u003ca href='https://axios-miniprogram.com'\u003e中文文档\u003c/a\u003e\n\u003c/p\u003e\n\n## axios-miniprogram 是什么？\n\naxios-miniprogram 是一款为小程序平台量身定制的轻量级请求库，支持跨平台使用，同时也支持多种导入方式，可用于原生小程序项目，也可用于第三方框架项目，用法上同 [axios](https://github.com/axios/axios.git) 类似。\n\n## 特性\n\n- 支持 `Typescript`，健全的类型系统，智能的 `IDE` 提示。\n- 支持 动态地址。\n- 支持 校验状态码。\n- 支持 参数序列化。\n- 支持 上传/下载。\n- 支持 错误处理。\n- 支持 转换数据。\n- 支持 取消请求。\n- 支持 扩展实例。\n- 支持 中间件。\n- 支持 拦截器。\n- 支持 平台适配器。\n\n## 目前内部支持的平台\n\n- [微信小程序](https://developers.weixin.qq.com/miniprogram/dev/framework/?from=axios-miniprogram)\n- [支付宝小程序](https://opendocs.alipay.com/mini/developer/getting-started?from=axios-miniprogram)\n- [百度小程序](https://smartprogram.baidu.com/developer/index.html?from=axios-miniprogram)\n- [京东小程序](https://mp.jd.com?from=axios-miniprogram)\n- [抖音小程序](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/introduction/overview?from=axios-miniprogram)\n- [QQ 小程序](https://q.qq.com/wiki/develop/miniprogram/frame/?from=axios-miniprogram)\n- [钉钉小程序](https://open.dingtalk.com/document/org/develop-org-mini-programs?from=axios-miniprogram)\n- [飞书小程序](https://open.feishu.cn/document/uYjL24iN/uMjNzUjLzYzM14yM2MTN?from=axios-miniprogram)\n- [快手小程序](https://mp.kuaishou.com/docs/introduction/quickStart.html?from=axios-miniprogram)\n- [360 小程序](https://mp.360.cn/doc/miniprogram/dev/#/f4b41f0cc5683bce78dfadfa7f3c73e7?from=axios-miniprogram)\n- [小红书小程序](https://miniapp.xiaohongshu.com/docs/guide/miniIntroduce?from=axios-miniprogram)\n\n## 关于在跨端框架中使用时的支持度\n\n问：在 uni-app 或者 Taro 等等这类跨端框架中使用时，该请求库支持 h5，APP，vue3 等等吗？\n\n答：该请求库只是对框架提供的请求 API 进行了封装，并没有使用什么黑魔法。理论上来讲，框架支持的平台，该库也必然支持。\n\n有问题欢迎反馈，请尽量把问题提到 [github issues](https://github.com/zjxxxxxxxxx/axios-miniprogram/issues) 中，这样更容易被我注意到。\n\n[提问点这里](https://github.com/zjxxxxxxxxx/axios-miniprogram/issues)\n\n## 跨端框架示例\n\n### Taro\n\n- [源代码](https://github.com/zjxxxxxxxxx/axios-miniprogram/tree/main/examples/taro)\n- [CodeSandbox](https://codesandbox.io/p/sandbox/github/zjxxxxxxxxx/axios-miniprogram/tree/main/examples/taro)\n- [StackBlitz](https://stackblitz.com/github/zjxxxxxxxxx/axios-miniprogram/tree/main/examples/taro)\n\n### uni-app\n\n- [源代码](https://github.com/zjxxxxxxxxx/axios-miniprogram/tree/main/examples/uni-app)\n- [CodeSandbox](https://codesandbox.io/p/sandbox/github/zjxxxxxxxxx/axios-miniprogram/tree/main/examples/uni-app)\n- [StackBlitz](https://stackblitz.com/github/zjxxxxxxxxx/axios-miniprogram/tree/main/examples/uni-app)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjxxxxxxxxx%2Faxios-miniprogram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzjxxxxxxxxx%2Faxios-miniprogram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjxxxxxxxxx%2Faxios-miniprogram/lists"}