Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

url-ok

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

url-ok - npm Package Compare versions

Comparing version 0.0.9 to 0.1.0

7

main.js
#!/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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc