{"library":"isomorphic-unfetch","type":"library","category":null,"description":"Isomorphic Unfetch is a lightweight JavaScript library that provides a universal `fetch` API implementation, automatically switching between `unfetch` (a minimal `fetch` ponyfill for browsers) and `node-fetch` (a `fetch` implementation for Node.js) based on the execution environment. The current stable version is 5.0.0. This package aims for a small footprint and consistent behavior across client-side and server-side JavaScript, abstracting away environment-specific `fetch` implementations. It provides both a ponyfill (default named import) and a global polyfill (side-effect import). Recent major updates include the adoption of `node-fetch` v3.x, which mandates Node.js >= 12.20.0, and the addition of first-class TypeScript definitions and Package Exports for improved module resolution. It focuses on simplicity and compatibility with standard `fetch` API usage.","language":"javascript","status":"active","version":"4.0.2","tags":["javascript","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install isomorphic-unfetch","imports":["import fetch from \"isomorphic-unfetch\";","import 'isomorphic-unfetch/polyfill';","import type { Request, Response, Headers } from 'isomorphic-unfetch';"]},{"cmd":"yarn add isomorphic-unfetch","imports":[]},{"cmd":"pnpm add isomorphic-unfetch","imports":[]}],"homepage":null,"github":"https://github.com/developit/unfetch","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/isomorphic-unfetch","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/isomorphic-unfetch/compatibility"}}