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.

11 lines (9 loc) 176 B
'use strict' module.exports = (orderedKeys, argv) => { for (const key of orderedKeys) { if (argv[key] !== undefined) { return argv[key] } } return false }