gamontal / mobile-friendly-test

⚠️ This repository is no longer maintained.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ This repository is no longer maintained.

mobile-friendly-test

Check if a specific URL is mobile friendly

Install

$ npm install --save mobile-friendly-test

Usage Examples

const mobileFriendlyTest = require('mobile-friendly-test')('api-key');

mobileFriendlyTest.run('https://research.google.com/', function (err, results) {
  if  (err) {
    return console.log(err);
  }

  console.log(results);

  /* Example response
    {
      testStatus: { 
        status: 'COMPLETE' 
      },
      mobileFriendliness: 'NOT_MOBILE_FRIENDLY',
      mobileFriendlyIssues: [ 
        { 
          rule: 'SIZE_CONTENT_TO_VIEWPORT' 
        } 
      ] 
    }
  /*
})

License

MIT © Gabriel Montalvo

About

⚠️ This repository is no longer maintained.

License:MIT License


Languages

Language:JavaScript 100.0%