check-is-pwa
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i check-is-pwa

Weekly Downloads

42

Version

1.0.0

License

MIT

Unpacked Size

6.87 kB

Total Files

9

Last publish

Collaborators

  • jbiesiada