包详细信息

port-ready

ratson2.5kMIT0.1.0

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

自述文件

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)
})