{"id":27863345,"url":"https://github.com/denosaurs/exit","last_synced_at":"2026-04-30T19:31:17.748Z","repository":{"id":57675387,"uuid":"290295944","full_name":"denosaurs/exit","owner":"denosaurs","description":"🧹 Execute function when you program is exiting","archived":false,"fork":false,"pushed_at":"2020-09-04T07:34:49.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T12:36:52.089Z","etag":null,"topics":["cli","deno","exit","process","tty"],"latest_commit_sha":null,"homepage":"https://deno.land/x/exit","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denosaurs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"open_collective":"denosaurs","github":"denosaurs"}},"created_at":"2020-08-25T18:44:17.000Z","updated_at":"2023-04-10T15:21:20.000Z","dependencies_parsed_at":"2022-09-26T16:40:15.658Z","dependency_job_id":null,"html_url":"https://github.com/denosaurs/exit","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/denosaurs/exit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fexit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fexit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fexit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fexit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denosaurs","download_url":"https://codeload.github.com/denosaurs/exit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fexit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32475191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["cli","deno","exit","process","tty"],"created_at":"2025-05-04T20:49:56.951Z","updated_at":"2026-04-30T19:31:17.731Z","avatar_url":"https://github.com/denosaurs.png","language":"TypeScript","funding_links":["https://opencollective.com/denosaurs","https://github.com/sponsors/denosaurs"],"categories":[],"sub_categories":[],"readme":"# exit\n\n[![Tags](https://img.shields.io/github/release/denosaurs/exit)](https://github.com/denosaurs/exit/releases)\n[![CI Status](https://img.shields.io/github/workflow/status/denosaurs/exit/check)](https://github.com/denosaurs/exit/actions)\n[![License](https://img.shields.io/github/license/denosaurs/exit)](https://github.com/denosaurs/exit/blob/master/LICENSE)\n\nHandle `SIGQUIT`, `SIGINT`, and `SIGTERM` in your application.\n\n---\n\n\u003e ⚠️ Signals are still not very well supported in deno. As APIs become more stable this library will be updated. Currently not supported for windows\n\n---\n\n```typescript\nimport { onExit, exit } from \"https://deno.land/x/exit/mod.ts\";\n\nonExit(() =\u003e {\n  console.log(\"Program is exiting, doing some cleanup!\");\n});\n\nonExit(async () =\u003e {\n  console.log(\"I will be called after the first one!\");\n});\n\nexit(0); // needed as signal hooks need to be disposed\n```\n\n## Other\n\n### Contribution\n\nPull request, issues and feedback are very welcome. Code style is formatted with deno fmt and commit messages are done following Conventional Commits spec.\n\n### Licence\n\nCopyright 2020-present, the denosaurs team. All rights reserved. MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fexit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenosaurs%2Fexit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fexit/lists"}