constgetPort=require('get-port');(async()=>{console.log(awaitgetPort());//=> 51402})();(async()=>{console.log(awaitgetPort({port:[3000,3001,3002]}));// Will use any element in the preferred ports array if available, otherwise fall back to a random port})();(async()=>{console.log(awaitgetPort({port:getPort.makeRange(3000,3100)}));// Will use any port from 3000 to 3100, otherwise fall back to a random port})();