Skip to content

toksea/node-random-port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

get a free random tcp port and pass to the callback

Resources

Stars

Watchers

Forks

Packages

No packages published