is-network-error

JSON →
library 1.3.2 ·javascript
verified Jun 7, 2026

Detect Fetch network errors across Node.js, Bun, Deno, and browsers. v1.3.2 – stable, low release cadence. Unlike manual checks (e.g., error.message.includes('fetch')), it handles the non-standardized error differences across runtimes. Useful for conditional retry logic or fallback handling in fetch-based code. Written in TypeScript, ships type definitions. Requires Node >=16. Minimal, zero-dependency package.