webcheck-cheerio
A cheerio plugin for webcheck.
How to install
npm install --save webcheck-cheerio
How to use
var Webcheck = ;var CheerioPlugin = ; var plugin = ; var webcheck = ;webcheck; plugin; // now continue with your code... webcheck;
Options
filterContentType
: Filter content-type that should process cheerio (default xml and html).filterStatusCode
: Filter status codes that should process cheerio (default all).
Note for filters
Filters are regular expressions, but the plugin uses only the .test(str)
method to proof. You are able to write
your own and much complexer functions by writing the logic in the test method of an object like this:
opts = filterSomething: { return false || true; }