1.0.1 • Published 3 years ago

hiot-wait-for v1.0.1

Weekly downloads
140
License
SEE LICENSE IN LI...
Repository
-
Last release
3 years ago

hiot-wait-for

Promised waiting for host and TCP port to become available. It's like the node version of the wait-for-it bash script — useful for synchronizing the start-up of interdependent services, such as linked docker containers.

Install

npm install hiot-wait-for

Usage

var waitfor = require('hiot-wait-for');

return waitfor('api.github.com', 443)
  .then(() => runApp())
  .catch(err => {
    // handle error
  });

Tests

npm install
npm test
1.0.1

3 years ago

1.0.0

3 years ago

0.0.3

3 years ago