node-superfetch is a tiny wrapper around Node.js's native fetch API (available since Node 18) that provides a superagent-like fluent interface. Version 0.3.5 is the latest stable release, with sporadic updates. It supports HTTP methods (get, post, put, patch, delete, head), query parameters, headers, send/attach for bodies, redirect limits, agent configuration, and optional noResultData mode. Unlike node-fetch or bare fetch, it offers a chainable API and response parsing (JSON, text, buffer, stream). It ships TypeScript types and is ESM-compatible via import or require (CJS).
npm install node-superfetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows a basic GET request with automatic JSON parsing and error handling.
Replace .end(callback) with await request.get(...) or .then().
Use { text } for plain text, { buffer } for binary data.Upgrade Node.js to version 18 or later.
Run 'npm install formdata-node' if you use attach().
Run 'npm install node-superfetch'
Use 'import request from \"node-superfetch\"' (default import)
Use 'const { body } = await request.get(url)'