{"library":"cli-handle-unhandled","type":"library","category":null,"description":"cli-handle-unhandled is a specialized Node.js utility package designed for command-line interfaces (CLIs) to ensure graceful, yet explicit, termination upon encountering unhandled promise rejections. Currently stable at version 1.1.2, the package has a mature and focused scope, with infrequent but consistent maintenance releases since its initial launch. Its key differentiator lies in its opinionated approach: rather than merely logging an unhandled rejection and allowing the process to continue in an indeterminate state, it registers a handler that explicitly crashes the Node.js process, providing immediate feedback essential for robust CLI tooling. This prevents silent failures that can occur when asynchronous operations reject without a `.catch()` block, making errors transparent to the user or calling environment. It is primarily a CommonJS module, targeting Node.js environments.","language":"javascript","status":"active","version":"1.1.2","tags":["javascript","cli-handle-unhandled","Ahmad Awais","ahmadawais"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cli-handle-unhandled","imports":["const unhandledError = require('cli-handle-unhandled');","const cliHandleUnhandled = require('cli-handle-unhandled');\ncliHandleUnhandled();"]},{"cmd":"yarn add cli-handle-unhandled","imports":[]},{"cmd":"pnpm add cli-handle-unhandled","imports":[]}],"homepage":null,"github":"https://github.com/ahmadawais/cli-handle-unhandled","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cli-handle-unhandled","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/cli-handle-unhandled/compatibility"}}