{"id":17233853,"url":"https://github.com/caseywebdev/kill-it-with-fire","last_synced_at":"2025-03-26T00:43:38.944Z","repository":{"id":66221738,"uuid":"41434406","full_name":"caseywebdev/kill-it-with-fire","owner":"caseywebdev","description":"KILL IT WITH FIRE!","archived":false,"fork":false,"pushed_at":"2016-11-04T16:26:35.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T08:46:55.745Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/caseywebdev.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":"2015-08-26T15:43:48.000Z","updated_at":"2016-11-04T16:26:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"829e5c5e-ced4-4ec3-91b5-db8959fce1d0","html_url":"https://github.com/caseywebdev/kill-it-with-fire","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fkill-it-with-fire","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fkill-it-with-fire/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fkill-it-with-fire/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/caseywebdev%2Fkill-it-with-fire/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/caseywebdev","download_url":"https://codeload.github.com/caseywebdev/kill-it-with-fire/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245568578,"owners_count":20636803,"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":[],"created_at":"2024-10-15T05:27:00.221Z","updated_at":"2025-03-26T00:43:38.939Z","avatar_url":"https://github.com/caseywebdev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![KILL IT WITH FIRE](https://camo.githubusercontent.com/df2f105712b43eadbdbafbbaffd316ca27d41f96/68747470733a2f2f636c617373616e64747261736873686f772e66696c65732e776f726470726573732e636f6d2f323031342f30352f666972652e676966)\n\n## Install\n\n```\nnpm install kill-it-with-fire\n```\n\n## Usage\n\n```js\nvar killItWithFire = require('kill-it-with-fire');\n\nprocess.on('SIGTERM', function () {\n  // Do the stuff that *should* let your process exit cleanly...\n  sockets.closeEm();\n  server.stopIt();\n  connections.breakUpWith();\n\n  // And usually that works fine...but when something is still hanging...\n  killItWithFire();\n\n  // Alternatively, you can pass options to `killItWithFire()`.\n  killItWithFire({wait: 5000})\n});\n```\n\n## `killItWithFire(options)`\n\n#### `wait` (default `10000`)\n\nThe time (in ms) to wait before killing it with fire.\n\n#### `log` (default `console.error.bind(console)`)\n\nA function to use to log the immolation.\n\n#### `code` (default `1`)\n\nThe code to exit the process with.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseywebdev%2Fkill-it-with-fire","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaseywebdev%2Fkill-it-with-fire","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaseywebdev%2Fkill-it-with-fire/lists"}