utils to find free ports in a range, checking if a port is open, etc

npm install netutil
50 downloads in the last day
366 downloads in the last week
1 616 downloads in the last month

node.js network utils


Find the first free port on the server within the given range:

findFreePort(start, end, hostname, callback)

Check whether the given port is open:

isPortOpen(hostname, port, timeout, callback)

Get the hostname of the current server:


npm loves you