A lightweight HTTP client built on top of isomorphic-fetch, designed for browser and Node.js environments with a simple API for GET, POST, PUT, DELETE, and JSON requests. Version 3.0.0 is the latest stable release. It provides global configuration (prefix, headers, cookies, filter, callback) and is primarily used with React/Redux applications. Compared to alternatives like axios, it has minimal dependencies but also limited features and less active maintenance.
npm install isomorphic-fetch-httpNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows global setup with prefix, cookies, filter, callback, and usage of GET and JSON POST.
Ensure callback returns a value (e.g., return data;).
Use http.post with explicit headers if maintaining forward compatibility.
Be aware of priority: local headers > headers from setup > defaults.
Use http.delete for DELETE requests, not http.put.
Use import syntax and ensure isomorphic-fetch or Node 18+.
Use named import: import { http } from 'isomorphic-fetch-http'Install isomorphic-fetch and import it before isomorphic-fetch-http, or upgrade Node to 18+
Switch to ES module import syntax: import { http } from 'isomorphic-fetch-http'