find-port
find-port copied to clipboard
Find any open port (random)
Add the ability to find a random open port to listen on instead of a range or predefined list.
Put together a pull request w/tests #6
@snoj how you doing mate? long time! Your build is failing for some reason, can you check? Plus I prefer to keep this code promise free...
@kessler, still pounding away at the keyboard like a monkey. ;)
It's failing because of the promise. I'll rewrite it as a pure callback.
@kessler tests are passing now.
Saw your blog/company sites. Our chats from so long ago make much more sense now!
Updated the code with a modification to probe so old and new can be done with the same function calls.