UNPKG

pnpm

Version:

Fast, disk space efficient package manager

125 lines (124 loc) 5.68 kB
{ "_args": [ [ { "raw": "tree-kill@1.2.1", "scope": null, "escapedName": "tree-kill", "name": "tree-kill", "rawSpec": "1.2.1", "spec": "1.2.1", "type": "version" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm" ] ], "_from": "tree-kill@1.2.1", "_hasShrinkwrap": false, "_id": "tree-kill@1.2.1", "_location": "/tree-kill", "_nodeVersion": "10.5.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/tree-kill_1.2.1_1541405840790_0.1693121613732902" }, "_npmUser": { "name": "wmhilton", "email": "wmhilton@gmail.com" }, "_npmVersion": "6.1.0", "_phantomChildren": {}, "_requested": { "raw": "tree-kill@1.2.1", "scope": null, "escapedName": "tree-kill", "name": "tree-kill", "rawSpec": "1.2.1", "spec": "1.2.1", "type": "version" }, "_requiredBy": [ "/" ], "_resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.1.tgz", "_shasum": "5398f374e2f292b9dcc7b2e71e30a5c3bb6c743a", "_shrinkwrap": null, "_spec": "tree-kill@1.2.1", "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm", "author": { "name": "Peteris Krumins", "email": "peteris.krumins@gmail.com", "url": "http://www.catonmat.net" }, "bin": { "tree-kill": "cli.js" }, "bugs": { "url": "https://github.com/pkrumins/node-tree-kill/issues" }, "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/" } ], "dependencies": {}, "description": "kill trees of processes", "devDependencies": { "mocha": "^2.2.5" }, "directories": {}, "dist": { "integrity": "sha512-4hjqbObwlh2dLyW4tcz0Ymw0ggoaVDMveUB9w8kFSQScdRLo0gxO9J7WFcUBo+W3C1TLdFIEwNOWebgZZ0RH9Q==", "shasum": "5398f374e2f292b9dcc7b2e71e30a5c3bb6c743a", "tarball": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.1.tgz", "fileCount": 6, "unpackedSize": 7363, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb3/yRCRA9TVsSAnZWagAAhI8P/33jrtBy8HKlLklDpsZD\np1Sj3jk/B9159h7GgG9trKVupt/xbwEbmLl1Nwnlxs1kV9xpIw7csfBpbPN+\nleYuWJ8qDCwYNA3KfOKQLiyPstTJDlN7iSufG7brBZJDqowWeDiPBHmFRVj8\nCjLkju6JcrvE2/lDFhlqLVxaC9GUpku+9Je7eiGkPC0CF+gnvgjJ6UVPtBsi\nscuFKJ77vXtcSgvEaVlUeqDvs+wzc2QMWruZ2yzdYXS5p5Db8Ggnugf9ha9D\nFDUAV68kd/KllKCwlizKAVutsQULoW+M1ZrqDf5hn9w6EIAWIr5rA3r+hsrB\nE003sWI5uhQKR0n/mco8NF69x/0SDoTqO9qZuOpH76NkCe6tRxNSJtrxA9f6\nZvV1Lb6vc72fA9dRvJTw4iwPzyxNf3XPXrlFIEiqrsPTKKqL4O4YY2I48dpC\nPYEdyhm9i9y47RPPJikXPaoteCyXhvPydFl5GxQZuD5neXDh/7P6DHHx4C9f\nQevpf1RRVbuilEYkr04JY13EnOE7kJx8+INi8C2lVx0ufvRykK9RIpQoE3sX\n1hu4mjdnvbg8xx51CkEPDL5VN7H03MtWHzpxF+/M+1Mc3rhyryvX0odqO/TH\nXK/igN00OLp1WFh9E55oW1PNEqjARz5gGLFRtlDBjBLeqJQp6rxQ0ESDK431\nDqyP\r\n=XdRT\r\n-----END PGP SIGNATURE-----\r\n" }, "gitHead": "d408f04316d8656cf520f35799518d5838d53955", "homepage": "https://github.com/pkrumins/node-tree-kill", "keywords": [ "tree", "trees", "process", "processes", "kill", "signal" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "pkrumins", "email": "peteris.krumins@gmail.com" }, { "name": "wmhilton", "email": "wmhilton@gmail.com" } ], "name": "tree-kill", "optionalDependencies": {}, "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## [1.2.0] - 2017-19-09\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", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git://github.com/pkrumins/node-tree-kill.git" }, "scripts": { "test": "mocha" }, "types": "index.d.ts", "version": "1.2.1" }