WeSearch

When a port is already in use, there is no interactive way to find it — so I built `port-peek`

·2 min read · 0 reactions · 0 comments · 13 views
#development#tools#node
When a port is already in use, there is no interactive way to find it — so I built `port-peek`
TL;DR · WeSearch summary

The article discusses the creation of a tool called `port-peek` to help developers manage listening ports more efficiently. It addresses the common issue of encountering the EADDRINUSE error and the cumbersome process of identifying and terminating the blocking process. `port-peek` offers an interactive terminal user interface (TUI) that allows users to browse and kill processes with ease.

Key facts
About this source

DEV.to (Top) files mainly under programming. We currently carry 4,891 of its stories.

Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3923619) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Mu Micro Posted on May 21 When a port is already in use, there is no interactive way to find it — so I built `port-peek` #node #cli #devtools #terminal The problem When a port is already in use, developers have to chain together lsof, grep, and kill commands to find and stop the offending process — there is no interactive way to scan all listening ports and act on them in one place. If you've hit EADDRINUSE :::3000 before, you know the ritual: lsof -i :3000, then grep, then kill.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)