Test Port Provider
Gets listenable ports (beginning from the one you pass) by trying to listen on them.
Installation
npm install test-port-provider
Usage
var net = portProvider = ; var PortProvider = 80 '127.0.0.1' true 100 true; var port=PortProvider; var port2=PortProvider; //use in in express or whatever...
API
constructor
/** * @param startPort * @param host * @param tryTestPorts * @param connectTimeout * @param log * @constructor */
getPort
/** * @name getPort * @return */