You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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

to
0.0.2

2

package.json
{
"name": "url-ok",
"description": "check http status for number of URLs with timeout",
"version": "0.0.1",
"version": "0.0.2",
"bin": "main.js",

@@ -6,0 +6,0 @@ "main": "lib/url-ok.js",

# url-ok
url-ok is a http and https status checker for URLs with timeout
`url-ok` is a HTTP and HTTPS status checker for URLs. The default timeout is 120 seconds at
which point it will abort the checks and the process will have an exit code of 1. If all
the checks are successfull (success is defined as returning 200), the process will have an
exit code of 0.
If a URL cannot be reached, it will continue to try to reach the URL every 500 milleseconds
up to the timeout. For HTTP, it uses a HEAD request while for HTTPS it uses GET.
## Options
--timeout to set a specific timeout in seconds
--verbose to enable verbose output
## Example of a successful run

@@ -6,0 +17,0 @@