UNPKG

@sector-labs/seo-slip

Version:

Catches SEO regressions by sampling and checking a website against a set of rules

11 lines (9 loc) 259 B
const isHtmlDocument = (responseBody, response) => { return ( responseBody && typeof responseBody === 'string' && response && /^text\/html/.test(response.headers['content-type']) ); }; module.exports = isHtmlDocument;