a synchronous version of sindresorhus/get-port
npm install get-port-sync
const getPortSync = require('get-port-sync');
let freePort = null;
try { freePort = getPortSync() }
catch (e) { /* boo */ }
npm run test
- sindresorhus/get-port --> the original get-port module
- sindresorhus/get-port-cli --> CLI for the original get-port module