{"_id":"taskkill","_rev":"2907645","name":"taskkill","description":"Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-01-13T06:19:52.000Z","created":"2015-05-31T00:44:41.147Z","5.0.0":"2022-06-24T13:07:12.994Z","4.0.0":"2021-08-12T12:26:33.201Z","3.1.0":"2019-11-13T11:23:26.964Z","3.0.0":"2019-05-27T10:39:27.422Z","2.0.0":"2016-01-08T15:10:45.846Z","1.0.0":"2015-05-31T00:44:41.147Z"},"users":{"sammy_winchester":true,"yuxy":true},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/taskkill.git"},"versions":{"5.0.0":{"name":"taskkill","version":"5.0.0","description":"Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/taskkill.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=14.16"},"scripts":{"test":"xo && ava"},"keywords":["taskkill","task","kill","terminate","windows","win","win32","pid","id","process","processes","services"],"dependencies":{"execa":"^6.1.0"},"devDependencies":{"ava":"^4.3.0","xo":"^0.50.0"},"gitHead":"295f66c3722f62ab5d9d095a7077d804364ceb71","bugs":{"url":"https://github.com/sindresorhus/taskkill/issues"},"homepage":"https://github.com/sindresorhus/taskkill#readme","_id":"taskkill@5.0.0","_nodeVersion":"14.19.2","_npmVersion":"8.3.2","dist":{"shasum":"57b449a3fa8a441f5e9a0336c55230894049bdba","size":2227,"noattachment":false,"key":"/taskkill/-/taskkill-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/taskkill/download/taskkill-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/taskkill_5.0.0_1656076032786_0.8912444540197333"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-24T13:40:42.941Z","publish_time":1656076032994,"_cnpm_publish_time":1656076032994},"4.0.0":{"name":"taskkill","version":"4.0.0","description":"Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/taskkill.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava"},"keywords":["taskkill","task","kill","terminate","windows","win","win32","pid","id","process","processes","services"],"dependencies":{"arrify":"^3.0.0","execa":"^5.1.1"},"devDependencies":{"ava":"^3.15.0","xo":"^0.44.0"},"gitHead":"ad323789a0dcc9234d9d749a0abecee3605f2ad7","bugs":{"url":"https://github.com/sindresorhus/taskkill/issues"},"homepage":"https://github.com/sindresorhus/taskkill#readme","_id":"taskkill@4.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"b018d227c9a757226f219ae41c1147c9a7fe6aa4","size":2226,"noattachment":false,"key":"/taskkill/-/taskkill-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/taskkill/download/taskkill-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/taskkill_4.0.0_1628771193053_0.03192937992603251"},"_hasShrinkwrap":false,"publish_time":1628771193201,"_cnpm_publish_time":1628771193201},"3.1.0":{"name":"taskkill","version":"3.1.0","description":"Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/taskkill.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["taskkill","task","kill","terminate","windows","win","win32","pid","id","process","processes","services"],"dependencies":{"arrify":"^2.0.1","execa":"^3.3.0"},"devDependencies":{"ava":"^2.4.0","xo":"^0.25.3"},"gitHead":"b3c7642d6fd8229135d28374c8274fa5271324b5","bugs":{"url":"https://github.com/sindresorhus/taskkill/issues"},"homepage":"https://github.com/sindresorhus/taskkill#readme","_id":"taskkill@3.1.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"28001339feb23bfae3f447902c4b4abcdd057680","size":2219,"noattachment":false,"key":"/taskkill/-/taskkill-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/taskkill/download/taskkill-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/taskkill_3.1.0_1573644206839_0.09785600384783022"},"_hasShrinkwrap":false,"publish_time":1573644206964,"_cnpm_publish_time":1573644206964},"3.0.0":{"name":"taskkill","version":"3.0.0","description":"Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/taskkill.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["taskkill","task","kill","terminate","windows","win","win32","pid","id","process","processes","services"],"dependencies":{"arrify":"^2.0.1","execa":"^1.0.0"},"devDependencies":{"ava":"^1.4.1","xo":"^0.24.0"},"gitHead":"f4548e59800c67dc9324e3744eb6a42c0178c75e","bugs":{"url":"https://github.com/sindresorhus/taskkill/issues"},"homepage":"https://github.com/sindresorhus/taskkill#readme","_id":"taskkill@3.0.0","_nodeVersion":"12.3.1","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"44fd7350a053fe97e5c25e16be5fe1e097a7ffdc","size":2206,"noattachment":false,"key":"/taskkill/-/taskkill-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/taskkill/download/taskkill-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/taskkill_3.0.0_1558953567310_0.7758432023847712"},"_hasShrinkwrap":false,"publish_time":1558953567422,"_cnpm_publish_time":1558953567422},"2.0.0":{"name":"taskkill","version":"2.0.0","description":"Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/taskkill"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["taskkill","task","kill","terminate","windows","win","win32","pid","id","process","processes","services"],"dependencies":{"arrify":"^1.0.0","execa":"^0.1.1"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"5143db723b128aadc53826061a6837a54b6af7d8","bugs":{"url":"https://github.com/sindresorhus/taskkill/issues"},"homepage":"https://github.com/sindresorhus/taskkill","_id":"taskkill@2.0.0","_shasum":"a354305702a964357033027aa949eaed5331b784","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.3.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a354305702a964357033027aa949eaed5331b784","size":2337,"noattachment":false,"key":"/taskkill/-/taskkill-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/taskkill/download/taskkill-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1452265845846,"_cnpm_publish_time":1452265845846,"_hasShrinkwrap":false},"1.0.0":{"name":"taskkill","version":"1.0.0","description":"Wrapper for the Windows `taskkill` command. Ends one or more tasks or processes.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/taskkill"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["taskkill","task","kill","terminate","windows","win","win32","pid","id","process","processes","services"],"dependencies":{"arrify":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"14159e7eb95bce67073b736709769d502c91e8f2","bugs":{"url":"https://github.com/sindresorhus/taskkill/issues"},"homepage":"https://github.com/sindresorhus/taskkill","_id":"taskkill@1.0.0","_shasum":"b264ac50be2b5568f8ede070efdad1de99da3005","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"b264ac50be2b5568f8ede070efdad1de99da3005","size":2328,"noattachment":false,"key":"/taskkill/-/taskkill-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/taskkill/download/taskkill-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1433033081147,"_cnpm_publish_time":1433033081147,"_hasShrinkwrap":false}},"readme":"# taskkill\n\n> Wrapper for the Windows [`taskkill`](https://technet.microsoft.com/en-us/library/bb491009.aspx) command. Ends one or more tasks or processes.\n\n## Install\n\n```sh\nnpm install taskkill\n```\n\n## Usage\n\n```js\nimport {taskkill} from 'taskkill';\n\nawait taskkill([pid, pid2]);\n```\n\n## API\n\nSee the [`taskkill` docs](https://technet.microsoft.com/en-us/library/bb491009.aspx) for more.\n\n### taskkill(input, options?)\n\nKill asynchronously.\n\nReturns a `Promise`.\n\n### taskkillSync(input, options?)\n\nKill synchronously.\n\n### Arguments\n\n#### input\n\nType: `string | number | string[] | number[]`\n\nOne or more process IDs or image names, but not mixed.\n\n#### options\n\nThe `system`, `username`, `password` options are mutually inclusive.\n\n##### system\n\nType: `string`\n\nName or IP address of a remote computer (do not use backslashes). The default is the local computer.\n\n##### username\n\nType: `string`\n\nA user specified by `User` or `Domain\\User`.\n\nThe default is the permissions of the current logged on user on the computer issuing the command.\n\n##### password\n\nType: `string`\n\nPassword of the user account for the specified `username`.\n\n##### filter\n\nType: `string`\n\nTypes of processes to include or exclude from termination.\n\nSee the [`taskkill` docs](https://technet.microsoft.com/en-us/library/bb491009.aspx) for supported filters.\n\n##### force\n\nType: `boolean`\n\nForcefully terminate processes. Ignored for remote processes as all remote processes are forcefully terminated.\n\n##### tree\n\nType: `boolean`\n\nTerminate all child processes along with the parent process, commonly known as a tree kill.\n\n## Related\n\n- [tasklist](https://github.com/sindresorhus/tasklist) - Wrapper for the Windows `tasklist` command\n- [fkill](https://github.com/sindresorhus/fkill) - Force kill processes, cross-platform\n","_attachments":{},"homepage":"https://github.com/sindresorhus/taskkill#readme","bugs":{"url":"https://github.com/sindresorhus/taskkill/issues"},"license":"MIT"}