{"id":15617031,"url":"https://github.com/justjavac/deno_ctrlc","last_synced_at":"2025-04-12T19:50:32.157Z","repository":{"id":48153773,"uuid":"287433927","full_name":"justjavac/deno_ctrlc","owner":"justjavac","description":"Cross platform handling of Ctrl-C signals.","archived":false,"fork":false,"pushed_at":"2022-10-28T01:05:15.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-07T18:03:50.030Z","etag":null,"topics":["ctrl","ctrlc","deno","deno-ctrlc","signals"],"latest_commit_sha":null,"homepage":"https://deno.land/x/ctrlc","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/justjavac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-14T03:24:19.000Z","updated_at":"2024-08-12T20:04:41.000Z","dependencies_parsed_at":"2022-09-15T22:11:38.409Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/deno_ctrlc","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"justjavac/deno_starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ctrlc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ctrlc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ctrlc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fdeno_ctrlc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/deno_ctrlc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625501,"owners_count":21135513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ctrl","ctrlc","deno","deno-ctrlc","signals"],"created_at":"2024-10-03T07:41:05.471Z","updated_at":"2025-04-12T19:50:32.137Z","avatar_url":"https://github.com/justjavac.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno_ctrlc\n\nCross platform handling of Ctrl-C signals.\n\n## Try it\n\n```bash\ndeno run https://deno.land/x/ctrlc/example.ts\n```\n\n## Usage\n\n```ts\nimport { Disposable, setHandler } from \"https://deno.land/x/ctrlc/mod.ts\";\n\nconst ctrlc: Disposable = setHandler(() =\u003e {\n  Deno.exit();\n});\n\nconsole.log(\"press ctrl + c, will exit\");\n// loop\n```\n\n### License\n\n[deno_ctrlc](https://github.com/justjavac/deno_ctrlc) is released under the MIT\nLicense. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_ctrlc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fdeno_ctrlc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fdeno_ctrlc/lists"}