
Company News
Socket Has Acquired Secure Annex
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.
isomorphic-fetch
Advanced tools
Fetch for node and Browserify. Built on top of GitHub's WHATWG Fetch polyfill.
fetch as a global so that its API is consistent between client and server.For ease-of-maintenance and backward-compatibility reasons, this library will always be a polyfill. As a "safe" alternative, which does not modify the global, consider fetch-ponyfill.
The Fetch API is currently not implemented consistently across browsers. This module will enable you to use fetch in your Node code in a cross-browser compliant fashion. The Fetch API is part of the Web platform API defined by the standards bodies WHATWG and W3C.
npm install --save isomorphic-fetch
bower install --save isomorphic-fetch
require('isomorphic-fetch');
fetch('//offline-news-api.herokuapp.com/stories')
.then(function(response) {
if (response.status >= 400) {
throw new Error("Bad response from server");
}
return response.json();
})
.then(function(stories) {
console.log(stories);
});
All open source code released by FT Labs is licenced under the MIT licence. Based on the fine work by jxck.
Axios is a popular HTTP client for the browser and Node.js. It provides a promise-based API and has a similar feature set to isomorphic-fetch, including interceptors, automatic transforms for JSON data, and cancellation of requests. Axios also provides more detailed configuration options for requests compared to isomorphic-fetch.
Node-fetch is a light-weight module that brings the Fetch API to Node.js. It is similar to isomorphic-fetch but is specifically designed for Node.js environments. Unlike isomorphic-fetch, node-fetch does not provide a polyfill for the browser environment.
Whatwg-fetch is a polyfill for the Fetch API for browsers that do not support it natively. It is similar to isomorphic-fetch in that it allows the use of the Fetch API in the browser, but it does not provide support for Node.js environments.
Cross-fetch is another library that provides a polyfill for the Fetch API for both Node.js and browser environments. It is similar to isomorphic-fetch in its universal approach, but it may have different implementation details or additional features.
FAQs
Isomorphic WHATWG Fetch API, for Node & Browserify
The npm package isomorphic-fetch receives a total of 6,816,726 weekly downloads. As such, isomorphic-fetch popularity was classified as popular.
We found that isomorphic-fetch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket has acquired Secure Annex to expand extension security across browsers, IDEs, and AI tools.

Research
/Security News
Socket is tracking cloned Open VSX extensions tied to GlassWorm, with several updated from benign-looking sleepers into malware delivery vehicles.

Product
Reachability analysis for PHP is now available in experimental, helping teams identify which vulnerabilities are actually exploitable.