{"library":"why-is-node-running","type":"library","category":null,"description":"why-is-node-running is a diagnostic utility for Node.js environments, designed to identify active handles (like timers, network connections, and event listeners) that prevent a Node.js process from exiting gracefully. The current stable version is 3.2.2. Releases are active but somewhat irregular, typically driven by Node.js version updates or small feature enhancements and bug fixes. Its key differentiator lies in its ability to pinpoint the exact code locations responsible for these lingering handles, providing stack traces to aid in debugging unexpected process longevity or potential memory leaks, which is crucial for server-side applications and long-running scripts. It supports both programmatic integration and CLI usage, including a convenient `--import` flag for preloading. The package also provides TypeScript type definitions for enhanced developer experience.","language":"javascript","status":"active","version":"3.2.2","tags":["javascript","debug","devops","test","events","handles","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install why-is-node-running","imports":["import whyIsNodeRunning from 'why-is-node-running';","node --import why-is-node-running/include my-app.js","import whyIsNodeRunning from 'why-is-node-running';\nimport type { ActiveHandle } from 'why-is-node-running';"]},{"cmd":"yarn add why-is-node-running","imports":[]},{"cmd":"pnpm add why-is-node-running","imports":[]}],"homepage":null,"github":"https://github.com/mafintosh/why-is-node-running","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/why-is-node-running","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/why-is-node-running/compatibility"}}