{"id":29142197,"url":"https://github.com/ethanz-code/ethan-utils","last_synced_at":"2026-02-14T10:14:33.561Z","repository":{"id":301353186,"uuid":"1008315571","full_name":"ethanz-code/ethan-utils","owner":"ethanz-code","description":"网络请求，状态管理，支付网关等等企业项目开发过程中常用工具包","archived":false,"fork":false,"pushed_at":"2026-01-23T03:19:38.000Z","size":214,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-08T01:59:57.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ethanz-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-06-25T11:02:04.000Z","updated_at":"2026-01-23T03:19:14.000Z","dependencies_parsed_at":"2025-06-26T12:47:17.598Z","dependency_job_id":"87da5afb-0545-4e25-86ca-a5d3c0af103a","html_url":"https://github.com/ethanz-code/ethan-utils","commit_stats":null,"previous_names":["ethanz-code/ethan-utils"],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/ethanz-code/ethan-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanz-code%2Fethan-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanz-code%2Fethan-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanz-code%2Fethan-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanz-code%2Fethan-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethanz-code","download_url":"https://codeload.github.com/ethanz-code/ethan-utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethanz-code%2Fethan-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29440963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T07:24:13.446Z","status":"ssl_error","status_checked_at":"2026-02-14T07:23:58.969Z","response_time":53,"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":[],"created_at":"2025-06-30T19:10:17.559Z","updated_at":"2026-02-14T10:14:33.516Z","avatar_url":"https://github.com/ethanz-code.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ethan-utils\n\n`ethan-utils` 是一个基于 pnpm 的 monorepo 工具库集合，旨在为前端/Node.js 项目提供高效、易用的工具包。所有子包均托管于 npm，可在 [ethan-utils npm 包列表](https://www.npmjs.com/settings/ethan-utils/packages) 查看。\n\n## 仓库结构与子包说明\n\n本仓库包含多个独立的工具包，涵盖状态管理、请求库、命令行工具等，便于统一管理和复用。具体包信息请访问上述链接。\n\n**模板包说明：**\n\n仓库内提供了一个基础模板包 [`template-pkg`](./template-pkg)，适用于快速创建新工具包。模板包内包含 TypeScript 配置、基础构建脚本（Rolldown）、最小化包结构，适合直接复制后进行二次开发。\n\n## 使用方式\n\n各子包均可独立安装和使用，具体用法请参考各自子包下的 README.md。\n\n**如何基于模板包创建新包：**\n\n1. 复制 `template-pkg` 文件夹并重命名为你的新包名（如 `my-utils`）。\n2. 修改 `package.json`、`README.md`、`index.ts` 等文件内容，替换为你的包信息和实现。\n3. 构建之前包中用到的外部依赖需要在 `rolldown` 配置文件的 `external` 项写明，传入字符串即可。\n4. `generate-types` 和 `build` 脚本分别用于生成类型文件，Maps，打包代码。\n5. 按照项目规范开发并构建发布。\n\n**测试说明：**\n\n- 本仓库已集成 [vitest](https://vitest.dev/) 作为单元测试工具，推荐在实现模块功能后为其编写测试用例。\n- 常用测试相关 script：\n  - `pnpm test`：运行所有测试用例。\n  - `pnpm test-pkg-axios`：仅测试 packages/axios 包。\n  - `pnpm coverage`：生成测试覆盖率报告。\n\n## 依赖与开发\n\n- 包管理工具：pnpm\n- 代码规范：ESLint、Prettier、Commitlint\n- 构建工具：Rolldown、tsc\n- 测试工具：Vitest\n- 其他依赖详见 package.json\n\n## 贡献\n\n欢迎 issue 和 PR，详细贡献指南请见 [CONTRIBUTING.md](./CONTRIBUTING.md)。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethanz-code%2Fethan-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethanz-code%2Fethan-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethanz-code%2Fethan-utils/lists"}