Skip to content

peterbraden/linkchecker.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linkchecker.js

var linkchecker = require('linkchecker.js')

var opts = {
  domains: ['mysite.com', 'www.mysite.com'] // linkchecker will verify all links and resources, but only follow/crawl links on these domains
, depth: 100
, emitter: errorEmitter // See below
}


linkchecker("http://mysite.com", opts, function(){// Woohoo.})



var errorEmitter = new require('events').EventEmitter

errorEmitter.on('resource-response', function(r, source){
  console.log("response from ", r.url, r.statusCode)
})


// errorEmitter also emits 'browser-error'




//

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published