Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
crawlkit-runner-htmlcs
Advanced tools
This runner can be used with CrawlKit in order to audit a website with the HTML Codesniffer.
npm install crawlkit-runner-htmlcs --save
const CrawlKit = require('crawlkit');
const HtmlCsRunner = require('crawlkit-runner-htmlcs');
const crawler = new CrawlKit('http://your/page');
// You could add a finder here in order to audit a whole network of pages
crawler.addRunner('htmlcs', new HtmlCsRunner());
crawler.crawl()
.then((data) => {
console.log(JSON.stringify(data.results, true, 2));
}, (err) => console.error(err));
The HTML Codesniffer runner supports a parameter where you can limit the standards to test for.
By default all standards are tested.
Supported standards are: WCAG2A
, WCAG2AA
, WCAG2AAA
, Section508
.
Use one:
// Test only WCAG2AA
crawler.addRunner('htmlcs', new HtmlCsRunner(), HtmlCsRunner.standard.WCAG2AA);
or multiple:
// Test WCAG2AA & Section508
crawler.addRunner('htmlcs', new HtmlCsRunner(), [HtmlCsRunner.standard.WCAG2AA, HtmlCsRunner.standard.Section508]);
If you are not interested in all levels of findings, you can set a level threshold:
// Only interested in warnings & errors (notices are below the threshold)
crawler.addRunner('htmlcs', new HtmlCsRunner(), null, HtmlCsRunner.level.WARNING);
Valid thresholds are NOTICE
, WARNING
and ERROR
(use the constants in HtmlCsRunner.level
).
This project is in no way affiliated with squizlabs.
FAQs
A CrawlKit runner for running the HTML Codesniffer
The npm package crawlkit-runner-htmlcs receives a total of 0 weekly downloads. As such, crawlkit-runner-htmlcs popularity was classified as not popular.
We found that crawlkit-runner-htmlcs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.