{"library":"http-terminator","type":"library","category":null,"description":"http-terminator provides a robust solution for gracefully shutting down Node.js HTTP(S) servers. Unlike the native `server.close()` method, which simply stops accepting new connections but leaves existing connections open indefinitely (potentially hanging due to keep-alive or long-running requests), this library actively tracks and terminates all connections after a configurable timeout. It ensures that in-flight requests complete their responses and communicates shutdown intent to clients. The current stable version is `3.2.0`, with a release cadence that includes minor and patch updates every few months, reflecting ongoing maintenance and feature additions. Key differentiators include its explicit handling of all connection types, including `http`, `https`, and `http2` servers (since v3.2.0), and its rewrite to TypeScript in v3.0.0, providing robust type definitions.","language":"javascript","status":"active","version":"3.2.0","tags":["javascript","kubernetes","prometheus","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-terminator","imports":["import { createHttpTerminator } from 'http-terminator';","import type { HttpTerminatorType } from 'http-terminator';","import type { HttpTerminatorConfigurationInputType } from 'http-terminator';"]},{"cmd":"yarn add http-terminator","imports":[]},{"cmd":"pnpm add http-terminator","imports":[]}],"homepage":null,"github":"https://github.com/gajus/http-terminator","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-terminator","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/http-terminator/compatibility"}}