Last 12 weeks · 3 commits
4 of 6 standards met
On Linux, outputs process info in this format: tcp LISTEN 0 511 *:3002 : users:(("next-server (v16.1.1)",pid=479293,fd=30)) The code uses to split each line into columns. When a process name contains spaces (like ), the last column gets incorrectly split: The code expects to be in column 6, but it's actually in column 7. The regex fails to match column 6, returning .
Repository: sindresorhus/pid-port. Description: Get the ID of the process that uses a certain port Stars: 149, Forks: 10. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v2.0.1 (1mo ago). Open PRs: 0, open issues: 0. Last activity: 1mo ago. Community health: 71%. Top contributors: sindresorhus, Richienb, robhogan, gengjiawen, zikaari.
fix: https://github.com/sindresorhus/pid-port/issues/16