hiot-wait-for

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i hiot-wait-for

Weekly Downloads

51

Version

1.0.1

License

SEE LICENSE IN LICENSE

Unpacked Size

13.1 kB

Total Files

4

Last publish

Collaborators

  • jdeibe