node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

randport

randport

Get a random port.

Example

var randport = require('randport');
randport(function(err, port){});

License

MIT