fetch-ponyfill

JSON →
library 7.1.0 ·javascript
verified Jun 7, 2026

A WHATWG fetch ponyfill (does not overwrite native fetch) that wraps github/fetch for the browser and delegates to node-fetch in Node.js. Current version 7.1.0. Ships TypeScript types. Ideal for environments where you need fetch without side effects or globals. Returns a setup function that yields fetch, Request, Response, Headers. Supports Promise and XMLHttpRequest options. Maintained, with regular releases.