check-is-pwa

Check if app is running as PWA

Usage no npm install needed!

<script type="module">
  import checkIsPwa from 'https://cdn.skypack.dev/check-is-pwa';
</script>

README

check-is-pwa

NPM version NPM downloads NPM license All Contributors Codecov Travis Bundle size

About ℹī¸

Check if app is running as PWA

Alternatives

How to Install 💾

First, install the library in your project by npm:

$ npm install check-is-pwa

Or Yarn:

$ yarn add check-is-pwa

Getting Started 🏁

Connect libary to project:

import checkIsPwa from 'check-is-pwa';

Next use library:

const status = checkIsPwa();

Example

// app is running as PWA

checkIsPwa() // true
// app is NOT running as PWA / running in SSR

checkIsPwa() // false

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Jakub Biesiada

đŸ’ģ ⚠ī¸ 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

License 🔱

This project is licensed under the MIT License Š 2020-present Jakub Biesiada