Socket
Book a DemoInstallSign in
Socket

is-pwa

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-pwa

Checks if a given URL is a PWA.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

is-pwa

Checks if a given URL is a PWA.

Install

$ npm install --save is-pwa

Usage

const isPwa = require('is-pwa');

isPwa(<URL>)
  .then(score => {
    if(score>75) {
      console.log(`It is a PWA! With a lighthouse score of: ${score}`);
    } else {
      console.error('Sorry, it\'s not a PWA :(');
    }
  })

API

isPwa(input)

input

Type: string

URL of the PWA.

CLI

$ npm install --global is-pwa
$ is-pwa 

  Checks if a given URL is a PWA.

  Usage

  Make sure you have ran `npm explore -g lighthouse -- npm run chrome&`

    $ is-pwa [input]

  Examples
    $ is-pwa https://jsfeatures.in
     It is a PWA! With a lighthouse score of: 80
  
    $ is-pwa https://h3manth.com
     Sorry, it's not a PWA :(

License

MIT © Hemanth.HM

Keywords

cli-app

FAQs

Package last updated on 31 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts