find-port-by-pid
v1.0.3
Published
Cross-platform utility to find ports used by a process ID
Maintainers
Readme
Find port by pid
This package helps get the port associated with a process.
Installation
Install globally using npm:
npm install find-port-by-pidUsage
Example Output:
import findPortByPid from "find-port-by-pid";
const port = await findPortByPid(pid: number);
console.log(port); // ["3000"]Contributing
Pull requests and improvements are welcome.
License
MIT License © 2025
