Isomorphic fetch wrapper that adds cookie and redirect handling across Node.js, browser, and React Native. Version 3.0.0 is current and stable, with infrequent releases. Unlike many isomorphic fetch libraries, this one automatically manages cookies across requests and handles redirects transparently, normalizing node-fetch behavior to match browser fetch. It layers on top of any fetch implementation (e.g., node-fetch, window.fetch, global.fetch) to provide consistent behavior without requiring manual redirect interception.
npm install real-isomorphic-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates an isomorphic fetch instance with cookie + redirect support, fetches a URL that sets cookies, then logs response text.
Use separate modules/processes if isolation is needed, or manually clear cookies via private methods.
new IsomorphicFetch(window.fetch) instead of relying on default.
Always pass a fetch implementation as the constructor argument.
If you need redirect interception, use fetch-cookie or raw node-fetch with manual redirect handling.
Use default import/require: const IsomorphicFetch = require('real-isomorphic-fetch');npm install node-fetch
Pass a fetch implementation: new IsomorphicFetch(require('node-fetch'));