seo_defect_scanner
v1.0.21
Published
code challenge from ShopBack
Downloads
5
Readme
$ npm install seo_defect_scanner
usage :
var seoScanner = require("seo_defect_scanner") var fs = require("fs"); const { SeoScanner } = seoScanner;
var href = "https://www.npmjs.com/package/seo_defect_scanner"; var max_strong_count = 16; var wstream = fs.createWriteStream('writable.txt')
wstream.on('finish', () => {console.log("write to writable completed!")}); new SeoScanner().scanHtml(href, max_strong_count, SeoScanner.OUTPUTTYPE.FILE, "file.txt"); new SeoScanner().scanHtml(href, max_strong_count, SeoScanner.OUTPUTTYPE.WRITABLE, wstream); new SeoScanner().scanHtml(href, max_strong_count, SeoScanner.OUTPUTTYPE.CONSOLE);