cross-undici-fetch

JSON →
library 0.4.14 ·javascript
verified Jun 7, 2026

A cross-platform fetch API ponyfill that provides the WHATWG fetch, Request, Response, and Headers interfaces using undici (Node.js) or native browser/cross-platform implementations. Version 0.4.14 is the latest stable; the package is actively maintained as part of the @whatwg-node family, with frequent releases. It differs from alternatives like 'node-fetch' by leveraging undici for Node.js (faster, HTTP/2 support) and providing TypeScript types out of the box. Designed for isomorphic JavaScript, it ensures consistent fetch semantics across Node.js, Deno, and browsers, with minimal polyfill footprint.