0.1.0 • Published 10 years ago
random-port v0.1.0
node-random-port
get a free random tcp port and pass to the callback
var random_port = require('random-port');
random_port(console.log); // default will return a port from 15000 to 15099
random_port({from: 20000}, console.log);
random_port({from: 20000, range: 10}, console.log);