{"_id":"is-standalone-pwa","_rev":"1-e228f63f5c57a329156aea47502eb371","name":"is-standalone-pwa","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"is-standalone-pwa","version":"0.1.0","keywords":["ua-parser-js","is-standalone-pwa","pwa"],"author":{"name":"Faisal Salman","email":"f@faisalman.com"},"license":"MIT","_id":"is-standalone-pwa@0.1.0","maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"homepage":"https://github.com/faisalman/is-standalone-pwa#readme","bugs":{"url":"https://github.com/faisalman/is-standalone-pwa/issues"},"dist":{"shasum":"44fc1af4b786c088978a9b30b96e2c370c73294e","tarball":"https://registry.npmjs.org/is-standalone-pwa/-/is-standalone-pwa-0.1.0.tgz","fileCount":7,"integrity":"sha512-n5SQqXd0/JEkrKYEB7ZUndwuS7NKskZvk6rZZt6kTE1jiPxtPfPvVhXkfteIKpUfcEP07qsja/Wjz9NDjiZ5gg==","signatures":[{"sig":"MEQCIFwk3P21n4s/HfQAx4Gg3SU7rr+0V967D92ARmw2mAKPAiAbCAidLXouiJSZOOIB0c+xsw48YYOc6UzGwvso6stC7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/is-standalone-pwa@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":6069},"main":"./dist/cjs/index.js","type":"commonjs","title":"isStandalonePWA","types":"./dist/cjs/index.d.ts","module":"./dist/esm/index.js","exports":{".":{"import":"./dist/esm/index.js","require":"./dist/cjs/index.js"}},"funding":[{"url":"https://github.com/sponsors/faisalman","type":"github"},{"url":"https://opencollective.com/ua-parser-js","type":"opencollective"},{"url":"https://paypal.me/faisalman","type":"paypal"}],"gitHead":"7b5410beac4ea66fe308d9fe40d611234f19aaf8","scripts":{"test":"mocha ./test","build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc --module commonjs --outDir ./dist/cjs --target es2019","build:esm":"tsc --module esnext --moduleResolution bundler --outDir ./dist/esm --target es2019"},"_npmUser":{"name":"faisalman","email":"fyzlman@gmail.com"},"repository":{"url":"git+https://github.com/faisalman/is-standalone-pwa.git","type":"git"},"_npmVersion":"10.9.0","description":"Detect if PWA is running in standalone mode","directories":{"src":"src","dist":"dist","test":"test"},"_nodeVersion":"18.20.4","_hasShrinkwrap":false,"devDependencies":{"mocha":"^10.2.0","typescript":"^5.2.2"},"_npmOperationalInternal":{"tmp":"tmp/is-standalone-pwa_0.1.0_1730810660943_0.27831706337533224","host":"s3://npm-registry-packages"}},"0.1.1":{"title":"isStandalonePWA","name":"is-standalone-pwa","version":"0.1.1","author":{"name":"Faisal Salman","email":"f@faisalman.com"},"description":"Detect if PWA is running in standalone mode","type":"commonjs","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","exports":{".":{"require":"./dist/cjs/index.js","import":"./dist/esm/index.js"}},"directories":{"dist":"dist","src":"src","test":"test"},"scripts":{"build":"npm run build:cjs && npm run build:esm","build:cjs":"tsc --module commonjs --outDir ./dist/cjs --target es2019","build:esm":"tsc --module esnext --moduleResolution bundler --outDir ./dist/esm --target es2019 && echo '{\"type\":\"module\"}' > ./dist/esm/package.json","test":"mocha ./test"},"repository":{"type":"git","url":"git+https://github.com/faisalman/is-standalone-pwa.git"},"keywords":["ua-parser-js","is-standalone-pwa","pwa"],"license":"MIT","bugs":{"url":"https://github.com/faisalman/is-standalone-pwa/issues"},"homepage":"https://github.com/faisalman/is-standalone-pwa#readme","funding":[{"type":"github","url":"https://github.com/sponsors/faisalman"},{"type":"opencollective","url":"https://opencollective.com/ua-parser-js"},{"type":"paypal","url":"https://paypal.me/faisalman"}],"devDependencies":{"mocha":"^10.2.0","typescript":"^5.2.2"},"_id":"is-standalone-pwa@0.1.1","gitHead":"a52aa091efcc3e5cb3a6b2d9d2da213d4e0d9510","types":"./dist/cjs/index.d.ts","_nodeVersion":"18.20.4","_npmVersion":"10.9.0","dist":{"integrity":"sha512-9Cbovsa52vNQCjdXOzeQq5CnCbAcRk05aU62K20WO372NrTv0NxibLFCK6lQ4/iZEFdEA3p3t2VNOn8AJ53F5g==","shasum":"7a1b0459471a95378aa0764d5dc0a9cec95f2871","tarball":"https://registry.npmjs.org/is-standalone-pwa/-/is-standalone-pwa-0.1.1.tgz","fileCount":8,"unpackedSize":6527,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/is-standalone-pwa@0.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE1Mdcty4JF2ItLu3g/EKMluITC/SI5vY/Mi25HdrNXRAiEA4siBfdxSZbHhLcrSh4E3z/odoU21Ha7NmeEJIh//Fgg="}]},"_npmUser":{"name":"faisalman","email":"fyzlman@gmail.com"},"maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-standalone-pwa_0.1.1_1730978013984_0.8181163056904857"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-05T12:44:20.831Z","modified":"2024-11-07T11:13:34.613Z","0.1.0":"2024-11-05T12:44:21.226Z","0.1.1":"2024-11-07T11:13:34.148Z"},"bugs":{"url":"https://github.com/faisalman/is-standalone-pwa/issues"},"author":{"name":"Faisal Salman","email":"f@faisalman.com"},"license":"MIT","homepage":"https://github.com/faisalman/is-standalone-pwa#readme","keywords":["ua-parser-js","is-standalone-pwa","pwa"],"repository":{"type":"git","url":"git+https://github.com/faisalman/is-standalone-pwa.git"},"description":"Detect if PWA is running in standalone mode","maintainers":[{"name":"faisalman","email":"fyzlman@gmail.com"}],"readme":"# isStandalonePWA\n\nDetect if PWA is running in standalone mode (not in browser).\n\n```sh\nnpm i is-standalone-pwa\n```\n\n## Methods\n\n### * `isStandalonePWA(): boolean`\n\nReturns `true` if detected as standalone, `false` otherwise.\n\n## Code Example\n\n```js\nimport { isStandalonePWA } from is-standalone-pwa;\n\nif (isStandalonePWA()) {\n    console.log('Hide download <button>!');\n}\n```\n\n# License\n\nMIT License\n\nCopyright (c) 2024 Faisal Salman <<f@faisalman.com>>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","readmeFilename":"README.md"}