port-ready

Promise to wait until a port is ready to accept connection.

Usage no npm install needed!

<script type="module">
  import portReady from 'https://cdn.skypack.dev/port-ready';
</script>

README

port-ready

Promise to wait until a port is ready to accept connection.

Installation

npm install port-ready --save

Usage

const portReady = require('port-ready')

portReady({ port: 8000 }).then(port => {
  console.log(port)
})