{"id":29029154,"url":"https://github.com/karinjs/axios","last_synced_at":"2026-02-16T21:32:10.806Z","repository":{"id":287860532,"uuid":"966034873","full_name":"KarinJS/axios","owner":"KarinJS","description":"Axios branch, very small and fast, with a small footprint, and no dependencies.","archived":false,"fork":false,"pushed_at":"2025-04-14T11:53:16.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-08T08:50:37.887Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/KarinJS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"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,"zenodo":null}},"created_at":"2025-04-14T09:53:17.000Z","updated_at":"2025-04-14T11:53:20.000Z","dependencies_parsed_at":"2025-04-14T10:41:14.683Z","dependency_job_id":null,"html_url":"https://github.com/KarinJS/axios","commit_stats":null,"previous_names":["karinjs/karin-axios"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/KarinJS/axios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Faxios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Faxios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Faxios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Faxios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KarinJS","download_url":"https://codeload.github.com/KarinJS/axios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KarinJS%2Faxios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29519308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T18:37:19.720Z","status":"ssl_error","status_checked_at":"2026-02-16T18:36:46.920Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-06-26T08:05:53.752Z","updated_at":"2026-02-16T21:32:10.783Z","avatar_url":"https://github.com/KarinJS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @karinjs/axios\n\n## 简介\n\n@karinjs/axios 是一个对 axios 进行重新打包的优化版本，显著减小了体积。这个项目使用 Vite 对原始的 axios 库进行了重新构建，使其更加轻量级，同时保留了 axios 的核心功能。\n\n## 特点\n\n- **极小的体积**：从原始的 2.7MB ([数据来源](https://pkg-size.dev/axios)) 缩减到仅 96KB，减少了约 96.4% 的体积\n- **零依赖**：没有额外依赖，更加纯净\n- **完全类型支持**：提供完整的 TypeScript 类型定义\n- **与原始 API 兼容**：保持与原始 axios API 的兼容性\n\n## 系统要求\n\n- Node.js \u003e= 18.0.0\n- 仅支持 ESM 模块\n- 仅支持 Node 环境\n\n## 安装\n\n```bash\n# 使用 npm\nnpm install @karinjs/axios\n\n# 使用 yarn\nyarn add @karinjs/axios\n\n# 使用 pnpm\npnpm add @karinjs/axios\n```\n\n### 使用别名安装\n\n如果您想要使用别名安装，可以使用以下方式：\n\n```bash\n# 使用 npm 安装并指定别名\nnpm install axios@npm:@karinjs/axios\n\n# 使用 yarn 安装并指定别名\nyarn add axios@npm:@karinjs/axios\n\n# 使用 pnpm 安装并指定别名\npnpm add axios@npm:@karinjs/axios\n```\n\n然后在您的代码中可以这样导入：\n\n```javascript\n// 使用别名导入\nimport axios from \"axios\";\n```\n\n## 使用方法\n\n与原始的 axios 库使用方式相同：\n\n```javascript\nimport axios from \"@karinjs/axios\";\n\n// 发起 GET 请求\naxios\n  .get(\"/api/data\")\n  .then((response) =\u003e {\n    console.log(response.data);\n  })\n  .catch((error) =\u003e {\n    console.error(error);\n  });\n\n// 发起 POST 请求\naxios\n  .post(\"/api/submit\", {\n    name: \"user\",\n    email: \"user@example.com\",\n  })\n  .then((response) =\u003e {\n    console.log(response.data);\n  });\n```\n\n## 版本信息映射\n\n| 原始版本 | @karinjs/axios | 备注 |\n| -------- | -------------- | ---- |\n| 1.8.4    | 1.0.0          |      |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarinjs%2Faxios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarinjs%2Faxios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarinjs%2Faxios/lists"}