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
- Host: GitHub
- URL: https://github.com/codedynasty-dev/find-port-by-pid
- Owner: CodeDynasty-dev
- Created: 2025-03-16T20:14:56.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-16T20:20:00.000Z (3 months ago)
- Last Synced: 2025-03-16T20:21:21.972Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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