fetch-timeout

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

Thin wrapper around the native fetch (or node-fetch) that adds configurable timeout support, returning a custom error string when the timeout is exceeded. Version 0.0.2 is the latest stable release; the package is minimal and has no active development. Only suitable for simple timeout scenarios; does not support AbortController or signal-based cancellation. Alternatives include native AbortController (now widely supported) or libraries like 'ky' with built-in timeout.