Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active October 23, 2024 05:38
Show Gist options
  • Select an option

  • Save wilmoore/fbcc95a4a50534779071a94f484dd5ee to your computer and use it in GitHub Desktop.

Select an option

Save wilmoore/fbcc95a4a50534779071a94f484dd5ee to your computer and use it in GitHub Desktop.
Software Engineering :: Programming :: Languages :: JavaScript :: Runtimes :: Node.js :: Fetch API

Software Engineering :: Programming :: Languages :: JavaScript :: Runtimes :: Node.js :: Fetch API

⪼ Made with 💜 by Polyglot.

related

Fetch API


Library Description Uses Interesting Features
Node Fetch A lightweight polyfill for Node.js that implements the Fetch API for server environments. Wraps Fetch, implemented with http and https in Node.js Familiar Fetch API for those coming from front-end development. Ideal for simple requests in Node.js.
cross-fetch Universal Fetch polyfill that works both in browsers and Node.js. Uses Fetch in browsers, node-fetch or similar in Node.js Ensures consistency across platforms for isomorphic apps. No config needed to switch environments.
undici A high-performance, spec-compliant HTTP client for Node.js that replaces Node’s core http/https modules. Uses Node.js core http/https with its own high-performance implementation Pipelining, pooling, fetch support via an experimental flag, and fully spec-compliant with HTTP/1.1.
got Feature-rich HTTP request library for Node.js, designed for advanced use cases. Built on Node.js http/https modules Supports retries, streaming, hooks, and plugin architecture for custom request/response handling.
axios Promise-based HTTP client that works in both browser and Node.js. Uses Fetch in browsers, Node.js http/https in Node.js Easy-to-use syntax, automatic transformation of JSON data, and built-in support for request/response interceptors.
superagent A lightweight, flexible HTTP client for Node.js and browsers with a simpler API. Uses Fetch in browsers, Node.js http/https in Node.js Great for quick API requests. Offers promises and callback-based APIs, and supports a wide range of HTTP methods.
request A deprecated but historically popular HTTP client for Node.js. Uses Node.js http/https modules Known for its ease of use and wide feature set, though now replaced by newer, more efficient libraries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment