random-port

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i random-port

Weekly Downloads

353

Version

0.1.0

License

MIT

Last publish

Collaborators

  • toksea