Click here to Skip to main content
15,887,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Frankly, I'm lost in how to approach using the API for:
https://www.npmjs.com/package/broken-link-checker

For instance, the doc give this example:

var htmlChecker = new blc.HtmlChecker(options, {
    html: function(tree, robots){},
    junk: function(result){},
    link: function(result){},
    complete: function(){}
});
 
htmlChecker.scan(html, baseUrl);


How do I use this? How do I run it and where do I pass in URL/ list of URLS

Any advice?

What I have tried:

Running .js file from command line
Posted
Comments
Richard MacCutchan 18-Jul-18 1:31am    
You need to study the documentation in more detail for the API and this method call in particular.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900