https://github.com/ratson/port-ready
Promise to wait until a port is ready to accept connection.
https://github.com/ratson/port-ready
Last synced: 11 months ago
JSON representation
Promise to wait until a port is ready to accept connection.
- Host: GitHub
- URL: https://github.com/ratson/port-ready
- Owner: ratson
- Created: 2018-01-01T12:15:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-07T13:15:59.000Z (about 8 years ago)
- Last Synced: 2025-07-08T08:55:26.387Z (11 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# port-ready
Promise to wait until a port is ready to accept connection.
## Installation
```
npm install port-ready --save
```
## Usage
```js
const portReady = require('port-ready')
portReady({ port: 8000 }).then(port => {
console.log(port)
})
```