"use strict"
const testConnection = require("testconnection")
testConnection(3333, "a", function (error, response) {
// Expect false because can not connect to host a at port 3333
console.log(response)
})
testConnection(80, "google.com", function (error, response) {
// Expect true because trying to connect to google.com.
// Could be false if google is down
console.log(response)
})
testconnection
0.0.2 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i testconnection
Weekly Downloads
7
Version
0.0.2
License
ISC