Mobile Friendly Test
Node.js library for testing HTML files on the fly and output errors in the console with Gulp.js compatibilities
How to install
API key
Before start you need to generate Google API key and add Google Search Console API into your Google APIs dashboard.
https://developers.google.com/webmaster-tools/search-console-api/v1/configure
npm
npm i mobile-friendly-test-npm
yarn
yarn add mobile-friendly-test-npm
How to use
import mobileFriendlyTest from 'mobile-friendly-test-npm'
const apiKey = ''
const url = ''
mobileFriendlyTest(url, apiKey)
Gulp.js integration
import gulp from 'gulp'
const { parallel } = gulp
import mobileFriendlyTest from 'mobile-friendly-test-npm'
const apiKey = ''
const url = ''
const mobileTestRes = () =>
mobileFriendlyTest(url, apiKey)
export default
parallel(
mobileTestRes
)