{"id":26216159,"url":"https://github.com/jakejohnson05/inquirerexitlistener","last_synced_at":"2026-05-18T09:35:03.100Z","repository":{"id":42636700,"uuid":"250391502","full_name":"JakeJohnson05/InquirerExitListener","owner":"JakeJohnson05","description":"Adds listeners for exit events for inquirer prompts","archived":false,"fork":false,"pushed_at":"2023-03-06T03:28:01.000Z","size":559,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-21T03:55:28.915Z","etag":null,"topics":["bash-prompt","cmd","javascript","js"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JakeJohnson05.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-26T23:06:12.000Z","updated_at":"2021-06-03T23:01:21.000Z","dependencies_parsed_at":"2025-03-12T11:21:04.700Z","dependency_job_id":"9c439cc2-e6f3-4120-8ff8-39cc1c952f95","html_url":"https://github.com/JakeJohnson05/InquirerExitListener","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JakeJohnson05/InquirerExitListener","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeJohnson05%2FInquirerExitListener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeJohnson05%2FInquirerExitListener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeJohnson05%2FInquirerExitListener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeJohnson05%2FInquirerExitListener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JakeJohnson05","download_url":"https://codeload.github.com/JakeJohnson05/InquirerExitListener/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JakeJohnson05%2FInquirerExitListener/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33172668,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash-prompt","cmd","javascript","js"],"created_at":"2025-03-12T11:20:11.501Z","updated_at":"2026-05-18T09:35:03.085Z","avatar_url":"https://github.com/JakeJohnson05.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InquirerExitListener\n\nAdds listeners for exit events. *Most commonly needed for inquirer prompts.*\n\nListens for `ctrl + c` and `escape` to add necessary new lines in output for next prompt.\n\n## Install\n\n```console\n$ npm install JakeJohnson05/InquirerExitListener\n```\n\n## Usage\n\nrequire this package before creating any inquiries and before possible long load times\n\n```js\nrequire('inquirer-exit-listener');\n\n// Now listening for close events\n```\n\nor call the exit function programmatically\n\n\n```js\nconst exitFunction = require('inquirer-exit-listener');\n\n// Still listening for close events\n\n// Call exitFunction() to programmatically end process\nexitFunction();\n// (beta) Include exit status code\nexitFunction(1);\n```\n\n## Windows\n\nIf you're on Windows, do yourself a favor and use [Windows Terminal](https://github.com/microsoft/terminal) instead of `cmd.exe`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakejohnson05%2Finquirerexitlistener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakejohnson05%2Finquirerexitlistener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakejohnson05%2Finquirerexitlistener/lists"}