fetch-nodeshim

JSON →
library 0.4.10 ·javascript
verified Jun 7, 2026

A lightweight fetch shim for Node.js that uses the environment's built-in Request, Response, and Headers classes (globals) but replaces the fetch implementation with calls into node:http and node:https. Version 0.4.10 is the latest stable release. Unlike @remix-run/web-fetch or undici-based shims, this avoids Node.js' built-in fetch (which may use an older undici) and provides a more permissive, patched-free implementation. Ships TypeScript types and is ESM-only.