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.

10 lines (8 loc) 156 B
'use strict' module.exports = (result) => { try { return result.messages[0].type === 'non-document-error' } catch (error) { return false } }