UNPKG
hollaback
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Resolves a Promise when host(s)/port(s) are ready
github.com/leebenson/hollaback
leebenson/hollaback
hollaback
/
example.js
10 lines
(8 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
hollaback =
require
(
'hollaback'
);
const
results =
await
hollaback
(
'google.com:80'
,
'yahoo.com:80'
,
'linkedin.com:80'
, {
timeout
:
10
*
1000
// 10 seconds
});
// Print out the results to the screen
for
(
const
result
of
results) {
console
.
log
(result); }