Skip to content

CodeDynasty-dev/find-port-by-pid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Find port by pid

This package helps get the port associated with a process.

Installation

Install globally using npm:

npm install find-port-by-pid

Usage

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