find-pid-from-port
Find the pid(s) of a process on a given port
Install
$ npm install find-pid-from-port
Usage
const findPidFromPort = const example = async { try const pids = await console //=> [1234, 5678] console //=> [1234] console //=> [5678] catch error console //=> "Couldn't find a process with port `8017`" }
API
findPidFromPort(port)
port
Type: number
Port to lookup.