1.0.4 • Published 2 years ago

mobile-friendly-test-npm v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago