{"name":"tree-kill","version":"1.2.2","description":"kill trees of processes","main":"index.js","types":"index.d.ts","bin":{"tree-kill":"cli.js"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git://github.com/pkrumins/node-tree-kill.git"},"homepage":"https://github.com/pkrumins/node-tree-kill","keywords":["tree","trees","process","processes","kill","signal"],"author":{"name":"Peteris Krumins","email":"peteris.krumins@gmail.com","url":"http://www.catonmat.net"},"contributors":[{"name":"Todd Wolfson","email":"todd@twolfson.com","url":"http://twolfson.com/"},{"name":"William Hilton","email":"wmhilton@gmail.com","url":"http://wmhilton.com/"},{"name":"Fabrício Matté","url":"http://ultcombo.js.org/"}],"license":"MIT","devDependencies":{"mocha":"^2.2.5"},"gitHead":"cb478381547107f5c53362668533f634beff7e6e","bugs":{"url":"https://github.com/pkrumins/node-tree-kill/issues"},"_id":"tree-kill@1.2.2","_nodeVersion":"10.15.3","_npmVersion":"6.11.2","dist":{"integrity":"sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==","shasum":"4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc","tarball":"http://registry-npm.ywwl.com/tree-kill/download/tree-kill-1.2.2.tgz","fileCount":6,"unpackedSize":7816,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd8TauCRA9TVsSAnZWagAA/n4P/RjmpJW5C+IepzIu9Xcq\nhxIZCfV3r55NBDxFRJY0Ut+zw3oM57QbINDsXY52FunE6MQxevqQ/DA2lZ4i\nWnTNw+JCrjJBOzyb4CnFl+yxwxH+UqUVbNP+UnphKgohhprwMqxwP0oZhoca\nG+4FyeubP/Z/+J3aUiovYl6FcjF8+zxdOSVJrruhHCwdFh2e31gQAmZnBJ0o\n+A9VkWBe0Q4mYvFgzyey9pFxOZa4ycV3rJfxKrClMHSZ+SXDVpAHPUflJ1tH\nkzAQ5Ur6vKlhuA6t0vSZZNnWdQW6VZF9DambVIcZAenyT0xzd/vyJN55hnCX\n5VKr+iaI+iv/XW6FHDgrNvlkUB13Pqa7h9iN49Lxi+WojOFGaX48Iv4DofnM\n9CopDp1Ax2hY+cd/BjmI0gDdHz+Axe8dpewwIzox7dJF8fHuiQVC3vo1mNJj\nvOV0zbdNSeDySxS0c+TDH6aEv1jLcPgbhG5dBQGyCUWRSugH/RzMATxVuzml\ngNqDrJnF9jxU8pFT7M0aOKblHOn3mc0jQBDR4bRdLfJlYToI0dpv8aifYGII\nR5I51wMa+iB2ijkac4Srw+me0IWjz/+HM2kSBk/7QXPVVHPzaUdxlxy3sgJ3\n+/cqCRD0cz6Eh/Fz/sumWb2cgdeXeJYYMMYYaOC/3Vqsg7E+tAziSJ4zOOTs\nnGN4\r\n=T7m4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3HY7p9w7pQEgghXK6wF0f5owS/TQ7hz+ZpuKSaebBngIgBEE3MVCkMnJWFnYPL8tQo60woR4K1jHq9TLVtzB39zE="}],"size":3243,"noattachment":false,"key":"/tree-kill/-/tree-kill-1.2.2.tgz"},"maintainers":[{"name":"pkrumins","email":"peteris.krumins@gmail.com"},{"name":"wmhilton","email":"wmhilton@gmail.com"}],"_npmUser":{"name":"wmhilton","email":"wmhilton@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tree-kill_1.2.2_1576089261752_0.05821041701212937"},"_hasShrinkwrap":false,"readme":"Tree Kill\n=========\n\nKill all processes in the process tree, including the root process.\n\nExamples\n=======\n\nKill all the descendent processes of the process with pid `1`, including the process with pid `1` itself:\n```js\nvar kill = require('tree-kill');\nkill(1);\n```\n\nSend a signal other than SIGTERM.:\n```js\nvar kill = require('tree-kill');\nkill(1, 'SIGKILL');\n```\n\nRun a callback when done killing the processes. Passes an error argument if there was an error.\n```js\nvar kill = require('tree-kill');\nkill(1, 'SIGKILL', function(err) {\n    // Do things\n});\n```\n\nYou can also install tree-kill globally and use it as a command:\n```sh\ntree-kill 1          # sends SIGTERM to process 1 and its descendents\ntree-kill 1 SIGTERM  # same\ntree-kill 1 SIGKILL  # sends KILL instead of TERMINATE\n```\n\nMethods\n=======\n\n## require('tree-kill')(pid, [signal], [callback]);\n\nSends signal `signal` to all children processes of the process with pid `pid`, including `pid`. Signal defaults to `SIGTERM`.\n\nFor Linux, this uses `ps -o pid --no-headers --ppid PID` to find the parent pids of `PID`.\n\nFor Darwin/OSX, this uses `pgrep -P PID` to find the parent pids of `PID`.\n\nFor Windows, this uses `'taskkill /pid PID /T /F'` to kill the process tree. Note that on Windows, sending the different kinds of POSIX signals is not possible.\n\nInstall\n=======\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install tree-kill\n```\n\nLicense\n=======\n\nMIT\n\nChangelog\n=========\n\n\n## [1.2.2] - 2019-12-11\n### Changed\n- security fix: sanitize `pid` parameter to fix arbitrary code execution vulnerability\n\n## [1.2.1] - 2018-11-05\n### Changed\n- added missing LICENSE file\n- updated TypeScript definitions\n\n## [1.2.0] - 2017-09-19\n### Added\n- TypeScript definitions\n### Changed\n- `kill(pid, callback)` works. Before you had to use `kill(pid, signal, callback)`\n\n## [1.1.0] - 2016-05-13\n### Added\n- A `tree-kill` CLI\n\n## [1.0.0] - 2015-09-17\n### Added\n- optional callback\n- Darwin support\n","publish_time":1576089261876,"_cnpm_publish_time":1576089261876,"dist-tags":{"latest":"1.2.2"}}