0.0.3 • Published 8 years ago

waitfor-connection v0.0.3

Weekly downloads
53
License
MIT
Repository
github
Last release
8 years ago

waitfor-connection

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 waitfor-connection

Usage

var waitfor = require('waitfor-connection');

return waitfor('api.github.com', 443)
  .then(() => spinUpApplication())
  .catch(err => console.error(err));

Tests

npm install
npm test
0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.2-0

8 years ago