{"id":722,"url":"https://github.com/sindresorhus/fkill","last_synced_at":"2025-05-14T14:03:11.716Z","repository":{"id":34026238,"uuid":"37784838","full_name":"sindresorhus/fkill","owner":"sindresorhus","description":"Fabulously kill processes. Cross-platform.","archived":false,"fork":false,"pushed_at":"2023-11-07T09:21:06.000Z","size":119,"stargazers_count":740,"open_issues_count":8,"forks_count":34,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-05T01:11:31.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sindresorhus.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,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"sindresorhus","open_collective":"sindresorhus","custom":"https://sindresorhus.com/donate"}},"created_at":"2015-06-20T20:30:33.000Z","updated_at":"2025-02-28T03:02:26.000Z","dependencies_parsed_at":"2023-12-19T05:24:49.903Z","dependency_job_id":null,"html_url":"https://github.com/sindresorhus/fkill","commit_stats":{"total_commits":91,"total_committers":13,"mean_commits":7.0,"dds":0.3076923076923077,"last_synced_commit":"e4c82c55ebcf7adf97706dfa58c195e74a91a635"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ffkill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ffkill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ffkill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sindresorhus%2Ffkill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sindresorhus","download_url":"https://codeload.github.com/sindresorhus/fkill/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253384849,"owners_count":21899935,"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-01-05T20:15:29.708Z","updated_at":"2025-05-14T14:03:11.369Z","avatar_url":"https://github.com/sindresorhus.png","language":"JavaScript","readme":"\u003ch1 align=\"center\"\u003e\n\t\u003cbr\u003e\n\t\u003cimg width=\"360\" src=\"media/logo.svg\" alt=\"fkill\"\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\t\u003cbr\u003e\n\u003c/h1\u003e\n\n\u003e Fabulously kill processes. Cross-platform.\n\nWorks on macOS (10.13 or later), Linux, Windows.\n\n## Install\n\n```sh\nnpm install fkill\n```\n\n## Usage\n\n```js\nimport fkill from 'fkill';\n\nawait fkill(1337);\nconsole.log('Killed process');\n\nfkill('Safari');\nfkill(':8080');\n\nfkill([1337, 'Safari', ':8080']);\n```\n\n## API\n\n### fkill(input, options?)\n\nReturns a promise that resolves when the processes are killed.\n\n#### input\n\nType: `number | string | Array\u003cnumber | string\u003e`\n\nOne or more process IDs/names/ports to kill.\n\nTo kill a port, prefix it with a colon. For example: `:8080`.\n\n#### options\n\nType: `object`\n\n##### force\n\nType: `boolean`\\\nDefault: `false`\n\nForce kill the processes.\n\n##### forceAfterTimeout\n\nType: `number`\\\nDefault: `undefined`\n\nForce kill processes that did not exit within the given number of milliseconds.\n\n##### tree\n\nType: `boolean`\\\nDefault: `true`\n\nKill all child processes along with the parent process. *(Windows only)*\n\n##### ignoreCase\n\nType: `boolean`\\\nDefault: `false`\n\nIgnore capitalization when killing a process.\n\nNote that the case is always ignored on Windows.\n\n##### silent\n\nType: `boolean`\\\nDefault: `false`\n\nSuppress all error messages. For example: `Process doesn't exist`.\n\n## Related\n\n- [fkill-cli](https://github.com/sindresorhus/fkill-cli) - CLI for this module\n- [alfred-fkill](https://github.com/SamVerschueren/alfred-fkill) - Alfred workflow for this module\n","funding_links":["https://github.com/sponsors/sindresorhus","https://opencollective.com/sindresorhus","https://sindresorhus.com/donate"],"categories":["JavaScript","Mac 软件","Libraries"],"sub_categories":["命令行","Signals"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Ffkill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsindresorhus%2Ffkill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsindresorhus%2Ffkill/lists"}