Huh? There are 113k git repos depending on this JS library, whose purpose is to find an available TCP port. By starting a listener, stopping it, and returning the port it got. Yes, race condition included. https://github.com/sindresorhus/get-port
(You can just specify port 0 and the operating system will pick an unused one for you)
Conversation
Notices
-
Tom K (tk@mastodon.social)'s status on Tuesday, 09-Jul-2019 02:51:23 EDT Tom K