{"library":"timed-out","type":"library","category":null,"description":"The `timed-out` package provides a simple and effective mechanism for adding timeout functionality to Node.js `http.ClientRequest` objects, preventing requests from hanging indefinitely. It automatically emits an `Error` object with specific `code` properties (`ETIMEDOUT` or `ESOCKETTIMEDOUT`) when a request exceeds its defined time limit. The current stable version is `7.0.0`. The project maintains a steady release cadence, typically introducing new major versions to align with Node.js LTS releases and introduce breaking changes like pure ESM adoption. Its key differentiator lies in its focused approach: it specifically extends the native `ClientRequest` object, offering granular control over connection and socket activity timeouts, rather than being part of a larger HTTP client library. This makes it a lightweight solution for augmenting existing `http` and `https` module usage without introducing a full-fledged client.","language":"javascript","status":"active","version":"7.0.0","tags":["javascript","http","https","timeout","get","url","uri","request","simple"],"last_verified":"Wed May 27","install":[{"cmd":"npm install timed-out","imports":["import timedOut from 'timed-out';","import timedOut from 'timed-out';"]},{"cmd":"yarn add timed-out","imports":[]},{"cmd":"pnpm add timed-out","imports":[]}],"homepage":null,"github":"https://github.com/sindresorhus/timed-out","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/timed-out","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/timed-out/compatibility"}}