check-is-pwa
v1.0.0
Published
Check if app is running as PWA
Downloads
980
Maintainers
Readme
check-is-pwa
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):
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