{"library":"server-destroy","type":"library","category":null,"description":"server-destroy is a lightweight Node.js utility designed to enhance `http.Server` or `net.Server` instances with a `destroy()` method. This method allows for the graceful shutdown of a server by not only stopping it from accepting new connections but also forcibly closing all existing open connections, a feature not natively present in older Node.js versions. The package is stable at version 1.0.1 but has not seen updates since its last publish in October 2015, making it effectively abandoned. Its release cadence is non-existent. Key differentiators at the time of its release were providing a complete server shutdown mechanism beyond `server.close()`, which only stops listening for new connections. With Node.js v18.2.0 and later, similar functionality is available natively via `server.closeAllConnections()`. Therefore, this package is primarily useful for projects targeting older Node.js runtimes.","language":"javascript","status":"abandoned","version":"1.0.1","tags":["javascript"],"install":[{"cmd":"npm install server-destroy","imports":["const enableDestroy = require('server-destroy');","/// <reference types=\"node\" />\nimport * as net from 'net';\n// ... enableDestroy(server as net.Server);"]},{"cmd":"yarn add server-destroy","imports":[]},{"cmd":"pnpm add server-destroy","imports":[]}],"homepage":null,"github":"https://github.com/isaacs/server-destroy","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/server-destroy","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/server-destroy/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}