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)
})
Promise to wait until a port is ready to accept connection.
<script type="module">
import portReady from 'https://cdn.skypack.dev/port-ready';
</script>
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)
})