An open API service indexing awesome lists of open source software.

https://github.com/codedynasty-dev/find-port-by-pid

Find port by pid
https://github.com/codedynasty-dev/find-port-by-pid

Last synced: 3 months ago
JSON representation

Find port by pid

Awesome Lists containing this project

README

        

# Find port by pid

This package helps get the port associated with a process.

## Installation

Install globally using npm:
```sh
npm install find-port-by-pid
```

## Usage

Example Output:
```ts
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