Skip to content

cosmicChild1987/urlChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

urlChecker

Checks a given url, and returns an object containing the response time from the url

Usage

var urlChecker = require('alanchurley-url-checker'); urlChecker.checkUrl(urlDomain, port, path, callback);

Where the urlDomain and path are strings, port is a integer, and callback is a function

Response

Response will be in the following format

{ status: x, time: y }

Status will either be 1 for a valid request, or 0 for an error

time is the time in millseconds that the request took, only supplied if status code is non 0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published