qiao-fetch is a lightweight HTTP client for Node.js that wraps the built-in `http` and `https` modules, providing a simple fetch-like API. Current stable version is 5.2.4, released infrequently as a minor package. It focuses on simplicity and zero dependencies, making it suitable for basic HTTP requests in Node.js environments. Unlike axios or node-fetch, qiao-fetch is minimal and does not support streams, timeout configuration, or advanced features like interceptors.
npm install qiao-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic GET request using ESM import, handling response status and text body, with error handling.
Use ES module imports or upgrade to Node.js 16+ with type: module in package.json.
Upgrade to v5 and switch to ESM imports.
Implement your own timeout with AbortController or use a different library like node-fetch.
If streaming is needed, consider using got or undici instead.
Use import fetch from 'qiao-fetch' and ensure type: module in package.json.
Use `import fetch from 'qiao-fetch'` or `import { fetch } from 'qiao-fetch'`.Provide fully qualified URL starting with http:// or https://.
No dependency data recorded yet.