https://github.com/kitten/fetch-nodeshim
A Node.js fetch shim using built-in Request, Response, and Headers (but without native fetch)
https://github.com/kitten/fetch-nodeshim
Last synced: 5 months ago
JSON representation
A Node.js fetch shim using built-in Request, Response, and Headers (but without native fetch)
- Host: GitHub
- URL: https://github.com/kitten/fetch-nodeshim
- Owner: kitten
- License: mit
- Created: 2025-01-30T18:04:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-11T14:15:34.000Z (5 months ago)
- Last Synced: 2026-02-11T22:20:44.503Z (5 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/fetch-nodeshim
- Size: 148 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# fetch-nodeshim
A looser implementation of `fetch` that bypasses Node.js' built-in `fetch`.
Some implementations (specifically ones that provide undici-based shims)
or some versions of Node.js may ship with a built-in version of `undici`
that's older and/or missing patches.
This implementation of `fetch` uses built-ins as much as possible,
using global `Request`, `Response`, and `Headers`, whether they're provided
by a polyfill or by Node.js itself.
However, it's a looser and more permissive implementation that calls
into `node:http` and `node:https` instead.
Think of it as `@remix-run/web-fetch`, but lighter.