Comparing version 0.0.9 to 0.1.0
#!/usr/bin/env node | ||
var accumulator = require('./lib/accumulator'); | ||
var accumulator = require('./lib/accumulator'), | ||
options = require('./lib/options'), | ||
interval = options.parsed.interval, | ||
failure = 1, | ||
options = require('./lib/options'), | ||
success = 0, | ||
@@ -10,3 +11,3 @@ timeout = options.parsed.timeout; | ||
if (options.parsed.verbose) { | ||
console.log('Waiting up to', Math.round(timeout/1000), 'seconds for response(s).'); | ||
console.log('Waiting up to', Math.round(timeout/1000), 'seconds for response(s) with check every', Math.round(interval/1000), 'seconds.'); | ||
} | ||
@@ -13,0 +14,0 @@ |
{ | ||
"name": "url-ok", | ||
"description": "check http or https status for number of URLs with timeout", | ||
"version": "0.0.9", | ||
"version": "0.1.0", | ||
"bin": "main.js", | ||
@@ -6,0 +6,0 @@ "main": "lib/url-ok.js", |
@@ -48,16 +48,14 @@ # url-ok [![Build Status](https://travis-ci.org/cymen/url-ok.png?branch=master)](https://travis-ci.org/cymen/url-ok) | ||
# url-ok http://no.such.server.localhost/ --timeout 10 --interval 2 --verbose --debug | ||
Waiting up to 10 seconds for response(s). | ||
# url-ok http://no.such.server.localhost/ --timeout 2 --interval .5 --verbose --debug | ||
Waiting up to 2 seconds for response(s) with check every 1 seconds. | ||
Requesting http://no.such.server.localhost/ | ||
DEBUG: requesting http://no.such.server.localhost/ | ||
DEBUG: requesting http://no.such.server.localhost/ (interval: 500ms) | ||
DEBUG: error http://no.such.server.localhost/ Error: getaddrinfo ENOTFOUND | ||
DEBUG: requesting http://no.such.server.localhost/ | ||
DEBUG: requesting http://no.such.server.localhost/ (interval: 500ms) | ||
DEBUG: error http://no.such.server.localhost/ Error: getaddrinfo ENOTFOUND | ||
DEBUG: requesting http://no.such.server.localhost/ | ||
DEBUG: requesting http://no.such.server.localhost/ (interval: 500ms) | ||
DEBUG: error http://no.such.server.localhost/ Error: getaddrinfo ENOTFOUND | ||
DEBUG: requesting http://no.such.server.localhost/ | ||
DEBUG: requesting http://no.such.server.localhost/ (interval: 500ms) | ||
DEBUG: error http://no.such.server.localhost/ Error: getaddrinfo ENOTFOUND | ||
DEBUG: requesting http://no.such.server.localhost/ | ||
DEBUG: error http://no.such.server.localhost/ Error: getaddrinfo ENOTFOUND | ||
Aborting after 10 seconds! | ||
Aborting after 2 seconds! | ||
At least one URL failed to respond! | ||
@@ -72,1 +70,3 @@ | ||
* add timestamps to logging | ||
* log which URL(s) actually failed | ||
* log time duration to reach success |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13111
279