UNPKG

html_codesniffer

Version:

HTML_CodeSniffer is a client-side JavaScript that checks a HTML document or source code, and detects violations of a defined coding standard.

9 lines (7 loc) 278 B
var fs = require('fs'); var scriptPath = __dirname+'/build/HTMLCS.js'; if (fs.existsSync(scriptPath) === true) { module.exports = require(scriptPath); } else { throw new Error('HTMLCS must be built using `grunt build` before it can be required in Node.js.'); }