mobile-friendly-test-npm

1.0.4 • Public • Published

Mobile Friendly Test

Node.js library for testing HTML files on the fly and output errors in the console with Gulp.js compatibilities

License:MIT npm

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
  )

Reference


MIT License

Package Sidebar

Install

npm i mobile-friendly-test-npm

Weekly Downloads

2

Version

1.0.4

License

ISC

Unpacked Size

5.34 kB

Total Files

10

Last publish

Collaborators

  • andreymatin