Promise to wait until a port is ready to accept connection.
npm install port-ready --save
const portReady = require('port-ready')
portReady({ port: 8000 }).then(port => {
console.log(port)
})Promise to wait until a port is ready to accept connection.