is-network-error
JSON →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.
Resources
packageis-network-error ↗