PortProc
A utility to:
- get the ID of the process currently using a given port
- get the port currently in use by a given process ID
Installation
npm install --save portproc-core
Usage
const portToProc procToPort = ; // Get the PID of the process using port 3000
Both utilities take in an integer number, and return a promise.
If you provide a port or process ID and no match can be found, the promise will reject.