Graceful HTTP(S) Server Terminator

JSON →
library 1.2.3 ·javascript
verified May 27, 2026

lil-http-terminator is a minimalistic, zero-dependency Node.js library designed for gracefully shutting down HTTP and HTTPS servers. Currently at stable version 1.2.3, it offers a consistent, promise-based API for managing server connections during shutdown. Its core differentiator lies in its low footprint (11 KB), absence of external dependencies, and a design that prioritizes robustness: it never throws exceptions during termination, instead resolving with a `{success, code, message, error}` object. Unlike some alternatives, it guarantees termination by timing out if connections linger, and it avoids monkey-patching Node.js core APIs. The library is actively maintained, with recent updates ensuring compatibility with newer Node.js features like `server.closeIdleConnections()`.

total hits 11
actors 5 distinct systems
last hit 1d ago human
GPTBot
2
Script
1
Search engines
1
Humans
1

top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇧🇷 Brazil · 🇩🇪 Germany