UNPKG

site-validator-cli

Version:

A command line tool that takes a URL or a file, then uses html-validator (a wrapper for https://validator.w3.org/nu/) to validate each page.

9 lines (7 loc) 216 B
'use strict' const exit = require('../exit') module.exports = (pagesNotFound, pagesFail) => { if (pagesNotFound.length > 0 || pagesFail.length > 0) { exit('Fast Fail Mode: Site Failed Validation', true) } }