{"id":15497497,"url":"https://github.com/bcomnes/fetch-undici","last_synced_at":"2025-08-03T10:14:24.291Z","repository":{"id":36974245,"uuid":"403762160","full_name":"bcomnes/fetch-undici","owner":"bcomnes","description":"Isomorphic fetch with window.fetch and undici.fetch","archived":false,"fork":false,"pushed_at":"2025-05-06T00:01:44.000Z","size":157,"stargazers_count":20,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-08T14:09:19.686Z","etag":null,"topics":["browser","fetch","isomorphic","node","universal"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fetch-undici","language":"JavaScript","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/bcomnes.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null},"funding":{"github":["bcomnes"],"custom":["https://bret.io"]}},"created_at":"2021-09-06T21:25:13.000Z","updated_at":"2025-05-28T18:49:55.000Z","dependencies_parsed_at":"2023-11-27T16:45:54.202Z","dependency_job_id":"f45e0e67-d612-48ac-aeb8-70d44cee538f","html_url":"https://github.com/bcomnes/fetch-undici","commit_stats":{"total_commits":107,"total_committers":4,"mean_commits":26.75,"dds":0.4299065420560748,"last_synced_commit":"5f291b20558d632c9ef58ff5942e1b62ae2beac1"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/bcomnes/fetch-undici","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Ffetch-undici","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Ffetch-undici/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Ffetch-undici/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Ffetch-undici/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcomnes","download_url":"https://codeload.github.com/bcomnes/fetch-undici/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcomnes%2Ffetch-undici/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268527753,"owners_count":24264733,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["browser","fetch","isomorphic","node","universal"],"created_at":"2024-10-02T08:38:49.097Z","updated_at":"2025-08-03T10:14:24.283Z","avatar_url":"https://github.com/bcomnes.png","language":"JavaScript","funding_links":["https://github.com/sponsors/bcomnes","https://bret.io"],"categories":[],"sub_categories":[],"readme":"# fetch-undici\n[![Actions Status](https://github.com/bcomnes/fetch-undici/workflows/tests/badge.svg)](https://github.com/bcomnes/fetch-undici/actions)\n\n**Justs use fetch directly in node or browsers. It just works now! Remember to use undici.request in node only contexts. Its much faster!**\n\nIsomorphic exports of `fetch`, providing [`window.fetch`][br] in the browser, and [`undici.fetch`][ud] in node.js.\n\n```\nnpm install fetch-undici\n```\n\n## Usage\n\n\n``` js\nimport {\n  fetch,\n  Headers,\n  Response,\n  Request\n} from 'fetch-undici';\n```\n\n## Why\n\nIf you want to write an API client of some kind, that would be useful in the browser or in Node.js, `fetch-undici` provides the best implementation of `fetch` for the environment it's used in.\n\n## How\n\n`fetch-undici` works by utilizing environment specific exports fields so that you can have dependency injection at the built-in node module resolver layer.\nIt supports the following export fields:\n\n- `main` (cjs node)\n- `browser` (cjs browser)\n- `exports.node` (cjs node)\n- `exports.browser` (esm browser)\n\n## License\n\nMIT\n\n[br]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API\n[ud]: https://github.com/nodejs/undici\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Ffetch-undici","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcomnes%2Ffetch-undici","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcomnes%2Ffetch-undici/lists"}