cp-fetch

JSON →
library 0.3.2 ·javascript maintenance
verified Jun 7, 2026

cp-fetch is a lightweight wrapper around the Fetch API that returns cancelable CPromise objects (from c-promise2) instead of native Promises, enabling automatic abort of network requests when the promise is cancelled, rejected, or resolved in a race/all pattern. Version 0.3.2 (stable) works in both browser and Node.js via cross-fetch ponyfill, supporting timeouts, cancellation, and concurrent request management (e.g., auto-abort other requests in CPromise.race/all on failure). It differentiates from axios and wretch by deeply integrating cancellation into the promise chain, not just the fetch signal. Released under MIT license, with low maintenance frequency (last update 2021).