tcp-connect

0.0.3 • Public • Published

tcp-connect

Check once for TCP connection.

Install

npm install tcp-connect

Usage

var tcp = require('tcp-connect');
 
tcp(google.com, 80, 1000)
  .then(() => console.log('google.com is available'))
  .catch(() => console.log('no luck this time'));

Development

Tests are best run in docker:

docker-compose build
docker-compose run tcp-connect npm test

/tcp-connect/

    Package Sidebar

    Install

    npm i tcp-connect

    Weekly Downloads

    155

    Version

    0.0.3

    License

    MIT

    Last publish

    Collaborators

    • dewe