UNPKG

cross-port-killer

Version:

Kill the process running on a given TCP port on Windows, Linux and Mac

8 lines (7 loc) 320 B
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var index_1 = require("./index"); (0, index_1.kill)(process.argv[2]).then(function (pids) { console.log(pids ? "".concat(pids.length, " process was killed") : 'no processes was found listening on the given port.'); });