{"_id":"cross-port-killer","_rev":"2327062","name":"cross-port-killer","description":"Kill the process running on a given TCP port on Windows, Linux and Mac","dist-tags":{"latest":"1.4.0"},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"time":{"modified":"2022-01-13T03:26:18.000Z","created":"2017-04-28T16:24:59.468Z","1.4.0":"2022-01-13T03:25:41.039Z","1.3.0":"2020-12-29T07:07:07.752Z","1.2.1":"2019-10-06T03:32:18.576Z","1.1.1":"2019-03-20T04:15:53.482Z","1.1.0":"2019-03-14T04:22:52.172Z","1.0.1":"2017-05-02T09:17:09.875Z","1.0.0":"2017-04-29T10:54:17.136Z","0.0.1":"2017-04-28T16:24:59.468Z"},"users":{"faraoman":true,"tomgao365":true},"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"versions":{"1.4.0":{"name":"cross-port-killer","version":"1.4.0","description":"Kill the process running on a given TCP port on Windows, Linux and Mac","keywords":["port","process","kill","kill-port","cross-platform","windows","linux","mac"],"main":"source/index.js","types":"source/index.d.ts","bin":{"kill-port":"source/cli.js"},"scripts":{"prepare":"npm run build && npm test","build":"tsc","precommit":"npm run prettier","prepush":"npm test","pretest":"npm run build","test":"mocha --no-timeouts","prettier":"prettier \"*/**/*.ts\" --config .prettierrc --write && git add ."},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"license":"MIT","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"homepage":"https://github.com/milewski/cross-port-killer","devDependencies":{"@types/mocha":"^9.0.0","@types/node":"^17.0.8","expect.js":"^0.3.1","http-server":"^14.1.0","husky":"^7.0.4","mocha":"^9.1.3","prettier":"^2.5.1","ps-list":"^7.2.0","typescript":"^4.5.4"},"gitHead":"9bdf14179a8cb83470df0eb7e6e151db325b44bf","_id":"cross-port-killer@1.4.0","_nodeVersion":"14.17.0","_npmVersion":"7.24.1","dist":{"shasum":"9e37b79c613b830e08122e342d31d5dadc3c7b67","size":3847,"noattachment":false,"key":"/cross-port-killer/-/cross-port-killer-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-port-killer/download/cross-port-killer-1.4.0.tgz"},"_npmUser":{"name":"milewski","email":"rafael.milewski@gmail.com"},"directories":{},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-port-killer_1.4.0_1642044340702_0.20318143912328757"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-13T03:25:47.678Z","publish_time":1642044341039,"_cnpm_publish_time":1642044341039},"1.3.0":{"name":"cross-port-killer","version":"1.3.0","description":"Kill the process running on a given TCP port on Windows, Linux and Mac","keywords":["port","process","kill","kill-port","cross-platform","windows","linux","mac"],"main":"source/index.js","types":"source/index.d.ts","bin":{"kill-port":"source/cli.js"},"scripts":{"prepare":"npm run build && npm test","build":"tsc","precommit":"npm run prettier","prepush":"npm test","pretest":"npm run build","test":"mocha --no-timeouts","prettier":"prettier \"*/**/*.ts\" --config .prettierrc --write && git add ."},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"license":"MIT","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"homepage":"https://github.com/milewski/cross-port-killer","devDependencies":{"@types/mocha":"^8.2.0","@types/node":"^14.14.16","expect.js":"^0.3.1","http-server":"^0.12.3","husky":"^4.3.6","mocha":"^8.2.1","prettier":"^2.2.1","ps-list":"^7.2.0","typescript":"^4.1.3"},"gitHead":"70e43e4382726ca553da06f70567051c2a9a7344","_id":"cross-port-killer@1.3.0","_nodeVersion":"12.6.0","_npmVersion":"6.14.8","dist":{"shasum":"66305ed1f6134333ea451baac6fc7b06c998a4b4","size":3873,"noattachment":false,"key":"/cross-port-killer/-/cross-port-killer-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-port-killer/download/cross-port-killer-1.3.0.tgz"},"_npmUser":{"name":"milewski","email":"rafael.milewski@gmail.com"},"directories":{},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-port-killer_1.3.0_1609225627537_0.9519827926386095"},"_hasShrinkwrap":false,"publish_time":1609225627752,"_cnpm_publish_time":1609225627752},"1.2.1":{"name":"cross-port-killer","version":"1.2.1","description":"Kill the process running on a given TCP port on Windows, Linux and Mac","keywords":["port","process","kill","kill-port","cross-platform","windows","linux","mac"],"main":"source/index.js","types":"source/index.d.ts","bin":{"kill-port":"source/cli.js"},"scripts":{"prepare":"npm run build && npm test","build":"tsc","precommit":"npm run prettier","commit":"git-cz","prepush":"npm test","pretest":"npm run build","test":"mocha --no-timeouts","prettier":"prettier \"*/**/*.ts\" --config .prettierrc --write && git add .","semantic-release":"semantic-release"},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"license":"MIT","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"homepage":"https://github.com/milewski/cross-port-killer","devDependencies":{"@types/mocha":"^5.2.7","@types/node":"^12.7.11","commitizen":"^4.0.3","cz-conventional-changelog":"^3.0.2","expect.js":"^0.3.1","http-server":"^0.11.1","husky":"^3.0.8","mocha":"^6.2.1","prettier":"^1.18.2","ps-list":"^6.3.0","semantic-release":"^15.13.24","typescript":"^3.6.3"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"7daaa5d38db4ff3ef1a274a383db35e5c49c639d","_id":"cross-port-killer@1.2.1","_nodeVersion":"12.4.0","_npmVersion":"6.9.0","dist":{"shasum":"30f5912dba758e25ae250feb16687a472142c8ef","size":4172,"noattachment":false,"key":"/cross-port-killer/-/cross-port-killer-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-port-killer/download/cross-port-killer-1.2.1.tgz"},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"_npmUser":{"name":"milewski","email":"rafael.milewski@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-port-killer_1.2.1_1570332738423_0.5031065677297877"},"_hasShrinkwrap":false,"publish_time":1570332738576,"_cnpm_publish_time":1570332738576},"1.1.1":{"name":"cross-port-killer","version":"1.1.1","description":"Kill the process running on a given TCP port on Windows, Linux and Mac","keywords":["port","process","kill","kill-port","cross-platform","windows","linux","mac"],"main":"source/index.js","types":"source/index.d.ts","bin":{"kill-port":"source/cli.js"},"scripts":{"prepare":"npm run build && npm test","build":"tsc","precommit":"npm run prettier","commit":"git-cz","prepush":"npm test","pretest":"npm run build","test":"mocha --no-timeouts","prettier":"prettier \"*/**/*.ts\" --config .prettierrc --write && git add .","semantic-release":"semantic-release"},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"license":"MIT","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"homepage":"https://github.com/milewski/cross-port-killer","devDependencies":{"@types/mocha":"^5.2.6","@types/node":"^11.11.4","commitizen":"^3.0.7","cz-conventional-changelog":"^2.1.0","expect.js":"^0.3.1","http-server":"^0.11.1","husky":"^1.3.1","mocha":"^6.0.2","prettier":"^1.16.4","ps-list":"^6.2.0","semantic-release":"^15.13.3","typescript":"^3.3.4000"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"8e4fc8f9fe36d964be71e8518d42951ee3d6a71d","_id":"cross-port-killer@1.1.1","_nodeVersion":"11.11.0","_npmVersion":"6.9.0","dist":{"shasum":"8623aea7f87d13968cc97b325942bfdd7aca1dea","size":4131,"noattachment":false,"key":"/cross-port-killer/-/cross-port-killer-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-port-killer/download/cross-port-killer-1.1.1.tgz"},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"_npmUser":{"name":"milewski","email":"rafael.milewski@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-port-killer_1.1.1_1553055353339_0.35874896085480734"},"_hasShrinkwrap":false,"publish_time":1553055353482,"_cnpm_publish_time":1553055353482},"1.1.0":{"name":"cross-port-killer","version":"1.1.0","description":"Kill the process running on a given TCP port on Windows, Linux and Mac","keywords":["port","process","kill","kill-port","cross-platform","windows","linux","mac"],"main":"source/index.js","bin":{"kill-port":"source/cli.js"},"scripts":{"prepare":"npm run build && npm test","build":"tsc","precommit":"npm run prettier","commit":"git-cz","prepush":"npm test","pretest":"npm run build","test":"mocha --no-timeouts","prettier":"prettier \"*/**/*.ts\" --config .prettierrc --write && git add .","semantic-release":"semantic-release"},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"license":"MIT","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"homepage":"https://github.com/milewski/cross-port-killer","devDependencies":{"@types/mocha":"^5.2.6","@types/node":"^11.11.3","commitizen":"^3.0.7","cz-conventional-changelog":"^2.1.0","expect.js":"^0.3.1","http-server":"^0.11.1","husky":"^1.3.1","mocha":"^6.0.2","prettier":"^1.16.4","ps-list":"^6.2.0","semantic-release":"^15.13.3","typescript":"^3.3.3333"},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"gitHead":"0711f2411acbf39d4c3adb0d20f44969b1319a60","_id":"cross-port-killer@1.1.0","_nodeVersion":"11.11.0","_npmVersion":"6.9.0","dist":{"shasum":"d1647d07cab3350ed05ef9788e5f8f80d951f2f8","size":3829,"noattachment":false,"key":"/cross-port-killer/-/cross-port-killer-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-port-killer/download/cross-port-killer-1.1.0.tgz"},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"_npmUser":{"name":"milewski","email":"rafael.milewski@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cross-port-killer_1.1.0_1552537372009_0.9016499916980185"},"_hasShrinkwrap":false,"publish_time":1552537372172,"_cnpm_publish_time":1552537372172},"1.0.1":{"name":"cross-port-killer","version":"1.0.1","description":"Kill the process running on a given TCP port on Windows, Linux and Mac","keywords":["port","process","kill","kill-port","cross-platform","windows","linux","mac"],"main":"source/index.js","bin":{"kill-port":"source/cli.js"},"scripts":{"prepublish":"npm run build && npm test","build":"tsc","pretest":"npm run build","test":"mocha --no-timeouts"},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"files":["source/*.js","test"],"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"license":"MIT","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"homepage":"https://github.com/milewski/cross-port-killer","devDependencies":{"@types/mocha":"^2.2.41","@types/node":"^7.0.14","expect.js":"^0.3.1","http-server":"^0.9.0","mocha":"^3.3.0","ps-list":"^3.1.0","typescript":"^2.3.1"},"dependencies":{},"gitHead":"594d539a11aac1a603b3b5e3be8c49d952a92cbd","_id":"cross-port-killer@1.0.1","_shasum":"94be34efb5354a9c8d9dce7a9373ec2efeefb241","_from":".","_npmVersion":"4.5.0","_nodeVersion":"6.10.0","_npmUser":{"name":"milewski","email":"rafael.milewski@gmail.com"},"dist":{"shasum":"94be34efb5354a9c8d9dce7a9373ec2efeefb241","size":3410,"noattachment":false,"key":"/cross-port-killer/-/cross-port-killer-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-port-killer/download/cross-port-killer-1.0.1.tgz"},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cross-port-killer-1.0.1.tgz_1493716629653_0.31196333817206323"},"directories":{},"publish_time":1493716629875,"_hasShrinkwrap":false,"_cnpm_publish_time":1493716629875},"1.0.0":{"name":"cross-port-killer","version":"1.0.0","description":"Kill the process running on a given TCP port on Windows, Linux and Mac","keywords":["port","process","kill","kill-port","cross-platform","windows","linux","mac"],"main":"source/index.js","bin":{"kill-port":"source/cli.js"},"scripts":{"prepublish":"npm run build && npm test","build":"tsc","pretest":"npm run build","test":"mocha --no-timeouts"},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"files":["source/*.js","test"],"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"license":"MIT","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"homepage":"https://github.com/milewski/cross-port-killer","devDependencies":{"@types/mocha":"^2.2.41","@types/node":"^7.0.14","expect.js":"^0.3.1","http-server":"^0.9.0","mocha":"^3.3.0","ps-list":"^3.1.0","typescript":"^2.3.1"},"dependencies":{},"gitHead":"d3d0d34da13682a46d3922d4b06022cd08dc3474","_id":"cross-port-killer@1.0.0","_shasum":"fdfb2bec94e96953fdd81d6df317f6a1e00a2ce9","_from":".","_npmVersion":"4.1.2","_nodeVersion":"6.6.0","_npmUser":{"name":"milewski","email":"rafael.milewski@gmail.com"},"dist":{"shasum":"fdfb2bec94e96953fdd81d6df317f6a1e00a2ce9","size":3710,"noattachment":false,"key":"/cross-port-killer/-/cross-port-killer-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-port-killer/download/cross-port-killer-1.0.0.tgz"},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/cross-port-killer-1.0.0.tgz_1493463256848_0.10593205178156495"},"directories":{},"publish_time":1493463257136,"_hasShrinkwrap":false,"_cnpm_publish_time":1493463257136},"0.0.1":{"name":"cross-port-killer","version":"0.0.1","description":"Kill the process running on a given port on Windows, Linux and Mac","keywords":["port","process","kill","kill-port","cross-platform","windows","linux","mac"],"main":"source/index.js","bin":{"kill-port":"source/cli.js"},"scripts":{"prepublish":"npm run build && npm test","build":"tsc","pretest":"npm run build","test":"mocha --no-timeouts"},"repository":{"type":"git","url":"git+https://github.com/milewski/cross-port-killer.git"},"files":["source/*.js","test"],"author":{"name":"Rafael Milewski","email":"rafael.milewski@gmail.com","url":"https://github.com/milewski"},"license":"MIT","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"homepage":"https://github.com/milewski/cross-port-killer","devDependencies":{"@types/mocha":"^2.2.41","@types/node":"^7.0.14","expect.js":"^0.3.1","mocha":"^3.3.0","typescript":"^2.3.1"},"dependencies":{},"gitHead":"358197f4b70f2f65720e269bef99b668fb14455e","_id":"cross-port-killer@0.0.1","_shasum":"f26aed7b41edfaf8b781331dce98b905d29b4f11","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.2","_npmUser":{"name":"milewski","email":"rafael.milewski@gmail.com"},"dist":{"shasum":"f26aed7b41edfaf8b781331dce98b905d29b4f11","size":2957,"noattachment":false,"key":"/cross-port-killer/-/cross-port-killer-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/cross-port-killer/download/cross-port-killer-0.0.1.tgz"},"maintainers":[{"name":"milewski","email":"rafael.milewski@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/cross-port-killer-0.0.1.tgz_1493396697541_0.042797908652573824"},"directories":{},"publish_time":1493396699468,"_cnpm_publish_time":1493396699468,"_hasShrinkwrap":false}},"readme":"# cross-port-killer\n\n[![npm version](https://badge.fury.io/js/cross-port-killer.svg)](https://badge.fury.io/js/cross-port-killer)\n[![npm downloads](https://img.shields.io/npm/dm/cross-port-killer.svg)](https://www.npmjs.com/package/cross-port-killer)\n[![dependencies](https://david-dm.org/milewski/cross-port-killer.svg)](https://www.npmjs.com/package/cross-port-killer)\n\nKill the process running on a given TCP port on **Windows**, **Linux** and **Mac**\n\n## Install\n\n```bash\n$ npm install cross-port-killer -D\n```\n\n## Usage\n\n```js\nimport { kill, killer } from 'cross-port-killer';\n\nkill(9090).then(pids => {\n  console.log(pids)\n})\n\n// you could also kill pids manually if you know them... this would save you bringing up another lib, you are welcome.\n\nkiller.killByPid(12345).then(() => console.log('done'))\nkiller.killByPids([12345, 54321]).then(() => console.log('done'))\n```\nThis lib also comes with a `CLI`.\n\nTo kill any process occupying the port 9090 you can run:\n\n```bash\n$ npx cross-port-killer 9090\n```\n\nor\n\n```bash\n$ npm install cross-port-killer -g\n```\n```bash\n$ kill-port 9090\n```\n\n## Dependencies\n\nOn **Linux**/**Mac** this library depends on `lsof` in case you don't have it installed (perhaps you are using docker?) run:\n\n```bash\n$ apt-get install lsof\n```\n\nOn **Mac**, It comes with the OS by default so nothing to worries.\n\n## License \n\n[MIT](LICENSE) © [Rafael Milewski](https://rafael-milewski.com?github=readme)\n","_attachments":{},"homepage":"https://github.com/milewski/cross-port-killer","bugs":{"url":"https://github.com/milewski/cross-port-killer/issues"},"license":"MIT"}