fetch-jsonp-polyfill

JSON →
library 1.1.5 ·javascript deprecated
verified Jun 7, 2026

A polyfill that adds JSONP support to the Fetch API by allowing method: 'JSONP' in fetch options. Current stable version is 1.1.5 (not updated since 2016). It wraps existing fetch polyfills like github/fetch, isomorphic-fetch, or node-fetch and must be imported after them. Unlike alternatives, it does not expose a separate JSONP function but monkey-patches the global fetch to transparently handle JSONP requests when the method is set to 'JSONP'. Supports common JSONP options: timeout, callback query parameter name, and callback function name.