A fetch API-based HTTP client for browser and Node.js that supports request/response interceptors, automatic transform, timeout, and retry. Current stable version is 1.8.3. It uses XMLHttpRequest as a fallback in older browsers and node-fetch in Node.js. Key differentiators include built-in support for interceptors, automatic search params building, and concurrency methods like fetch.all and fetch.spread. The library offers global configuration and instance creation similar to axios but built on top of the fetch API.
npm install zy-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows global import, GET/POST requests, interceptor setup, and instance creation with base URL and timeout.
Use import zyFetch from 'zy-fetch/lib/zyFetchs' for module-local use without polluting global scope.
Use Promise.all(arrayOfPromises) instead of fetch.all.
Check CHANGELOG for breaking changes when upgrading from 1.6.x.
Use fetch.allByOrder if order matters.
Run 'npm install node-fetch' for Node.js support.
Use import 'zy-fetch' for global import, or import zyFetch from 'zy-fetch/lib/zyFetchs'.
Install node-fetch: npm install node-fetch.
Upgrade to latest version. Alternatively, use Promise.all.
No dependency data recorded yet.