{"_id":"@activetheory/ios-silent-bypass","_rev":"2-ff648d54b2ca90ef240bab65e0187b2c","name":"@activetheory/ios-silent-bypass","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@activetheory/ios-silent-bypass","version":"1.0.0","author":{"url":"https://activetheory.net","name":"Active Theory","email":"hello@activetheory.net"},"license":"MIT","_id":"@activetheory/ios-silent-bypass@1.0.0","maintainers":[{"name":"luigiactivetheory","email":"luigi@activetheory.net"},{"name":"raffaele.filiberti","email":"raffaele@activetheory.net"}],"homepage":"https://github.com/activetheory/ios-silent-hack#readme","bugs":{"url":"https://github.com/activetheory/ios-silent-hack/issues"},"dist":{"shasum":"1892ddee72b169dd8923552e7f1cb694b1a5a341","tarball":"https://registry.npmjs.org/@activetheory/ios-silent-bypass/-/ios-silent-bypass-1.0.0.tgz","fileCount":7,"integrity":"sha512-NlHxCnwO7X9kdCwB01HjVgbR2BfHfPkFME6R489RWuUpYYtVHXsb+2J1DuEZ4ynTqwUcoBuysvWrmzKsJ8G9gA==","signatures":[{"sig":"MEUCIQD4dCU4qTriCuUceJBOr1Mf27+RQW69EFyEqVuQ6UM/9QIgOV1g3w5mRgWiJiM6W8qduj4pB+fZL51LMQf5ePAS5n4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5873},"main":"./src/index.js","type":"module","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/index.js"}},"gitHead":"192249f41991b0c2596309597e6f868a36e094ab","scripts":{"test":"vitest --dom run","format":"prettier --write --ignore-unknown","prepare":"husky","publish":"npm run format && npm run test","release":"release-it","test:watch":"vitest --dom"},"_npmUser":{"name":"raffaele.filiberti","email":"raffaele@activetheory.net"},"prettier":{"semi":true,"useTabs":false,"tabWidth":2,"endOfLine":"lf","printWidth":200,"quoteProps":"as-needed","arrowParens":"always","singleQuote":true,"trailingComma":"es5","bracketSpacing":true,"htmlWhitespaceSensitivity":"css"},"release-it":{"npm":{"publish":true},"github":{"release":true}},"repository":{"url":"git+https://github.com/activetheory/ios-silent-hack.git","type":"git"},"_npmVersion":"10.2.4","description":"Simple hack to allow web audio even if physical mute switch is on iPhone/iPads","directories":{},"lint-staged":{"**/*":["npm run format"]},"sideEffects":false,"_nodeVersion":"20.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","vitest":"^3.0.1","prettier":"^3.4.2","happy-dom":"^16.6.0","release-it":"^18.1.1","lint-staged":"^15.4.1"},"_npmOperationalInternal":{"tmp":"tmp/ios-silent-bypass_1.0.0_1737135011668_0.14227271916893414","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@activetheory/ios-silent-bypass","version":"1.0.1","author":{"url":"https://activetheory.net","name":"Active Theory","email":"hello@activetheory.net"},"license":"MIT","_id":"@activetheory/ios-silent-bypass@1.0.1","maintainers":[{"name":"luigiactivetheory","email":"luigi@activetheory.net"},{"name":"raffaele.filiberti","email":"raffaele@activetheory.net"}],"homepage":"https://github.com/activetheory/ios-silent-bypass#readme","bugs":{"url":"https://github.com/activetheory/ios-silent-bypass/issues"},"dist":{"shasum":"6f82e109dec01455c0d976fa78424d343086c365","tarball":"https://registry.npmjs.org/@activetheory/ios-silent-bypass/-/ios-silent-bypass-1.0.1.tgz","fileCount":7,"integrity":"sha512-VvpfL9Dq9bKZ2e9AQt8Dwbglu3Jq80UAftC5xJBwyKUrkHuk0hoxDwnZofxRg/vRFI2emK8hze7kD1vF2sDchg==","signatures":[{"sig":"MEUCIGEzAhInoIjY2OmRc+hdl364qVHcPJUuxomKCCVN6iwXAiEAjFPmS35D5o4R9ZtgYwFilR2VNqzhWfTiMETyhL/I55U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6180},"main":"./src/index.js","type":"module","types":"./src/index.d.ts","exports":{".":{"types":"./src/index.d.ts","default":"./src/index.js"}},"gitHead":"18624b1dbf50ccd4fcba593254aadfbd44823a21","scripts":{"test":"vitest --dom run","format":"prettier --write --ignore-unknown","prepare":"husky","publish":"npm run format && npm run test","release":"release-it","test:watch":"vitest --dom"},"_npmUser":{"name":"raffaele.filiberti","email":"raffaele@activetheory.net"},"prettier":{"semi":true,"useTabs":false,"tabWidth":2,"endOfLine":"lf","printWidth":200,"quoteProps":"as-needed","arrowParens":"always","singleQuote":true,"trailingComma":"es5","bracketSpacing":true,"htmlWhitespaceSensitivity":"css"},"release-it":{"npm":{"publish":true},"github":{"release":true}},"repository":{"url":"git+https://github.com/activetheory/ios-silent-bypass.git","type":"git"},"_npmVersion":"10.2.4","description":"Simple hack to allow web audio even if physical mute switch is on iPhone/iPad","directories":{},"lint-staged":{"*":"npm run format"},"sideEffects":false,"_nodeVersion":"20.11.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","vitest":"^3.0.1","prettier":"^3.4.2","happy-dom":"^16.6.0","release-it":"^18.1.1","lint-staged":"^15.4.1"},"_npmOperationalInternal":{"tmp":"tmp/ios-silent-bypass_1.0.1_1737367732733_0.5769108361005133","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@activetheory/ios-silent-bypass","version":"1.0.2","description":"Simple hack to allow web audio even if physical mute switch is on iPhone/iPad","main":"./src/index.js","publishConfig":{"access":"public"},"exports":{".":{"types":"./src/index.d.ts","default":"./src/index.js"}},"types":"./src/index.d.ts","scripts":{"test":"vitest --dom run","test:watch":"vitest --dom","format":"prettier --write --ignore-unknown","release":"release-it","prepare":"husky"},"sideEffects":false,"type":"module","author":{"name":"Active Theory","email":"hello@activetheory.net","url":"https://activetheory.net"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/activetheory/ios-silent-bypass.git"},"prettier":{"arrowParens":"always","bracketSpacing":true,"endOfLine":"lf","htmlWhitespaceSensitivity":"css","printWidth":200,"quoteProps":"as-needed","semi":true,"singleQuote":true,"tabWidth":2,"trailingComma":"es5","useTabs":false},"devDependencies":{"happy-dom":"^16.6.0","husky":"^9.1.7","lint-staged":"^15.4.1","prettier":"^3.4.2","release-it":"^18.1.1","vitest":"^3.0.1"},"release-it":{"github":{"release":true},"npm":{"publish":true}},"lint-staged":{"*":"npm run format"},"_id":"@activetheory/ios-silent-bypass@1.0.2","gitHead":"91fcb836539479fdc9e9b9bb704d3399b4da6b03","bugs":{"url":"https://github.com/activetheory/ios-silent-bypass/issues"},"homepage":"https://github.com/activetheory/ios-silent-bypass#readme","_nodeVersion":"20.11.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-RfATubuZ585qHubmzbWNlKauMOSM2g1OED48oFzG1rbfU+4W9eRCgYK1y5M+WrTsffy+bKoZyGP8HmygggU7wg==","shasum":"6b0295ac43285f30e57e63647d3ae0fb9a5a3cfb","tarball":"https://registry.npmjs.org/@activetheory/ios-silent-bypass/-/ios-silent-bypass-1.0.2.tgz","fileCount":6,"unpackedSize":6102,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD9tCYhNsETNFpcR0Ql5TMRF6EJw7XkYQQuMEAEm0cOsQIhAMa8Ddm91x7Y9jYr+I3V5xvAg1iIoIo6e9pYO8lhW5zN"}]},"_npmUser":{"name":"raffaele.filiberti","email":"raffaele@activetheory.net"},"directories":{},"maintainers":[{"name":"luigiactivetheory","email":"luigi@activetheory.net"},{"name":"raffaele.filiberti","email":"raffaele@activetheory.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ios-silent-bypass_1.0.2_1738228645380_0.06101132578081381"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-17T17:30:11.603Z","modified":"2025-01-30T09:17:25.793Z","1.0.0":"2025-01-17T17:30:11.976Z","1.0.1":"2025-01-20T10:08:52.926Z","1.0.2":"2025-01-30T09:17:25.571Z"},"bugs":{"url":"https://github.com/activetheory/ios-silent-bypass/issues"},"author":{"name":"Active Theory","email":"hello@activetheory.net","url":"https://activetheory.net"},"license":"MIT","homepage":"https://github.com/activetheory/ios-silent-bypass#readme","repository":{"type":"git","url":"git+https://github.com/activetheory/ios-silent-bypass.git"},"description":"Simple hack to allow web audio even if physical mute switch is on iPhone/iPad","maintainers":[{"name":"luigiactivetheory","email":"luigi@activetheory.net"},{"name":"raffaele.filiberti","email":"raffaele@activetheory.net"}],"readme":"# iOS Silent Bypass\n\niOS Silent Bypass is a library that allows you to play audio context even if the user has the [action button/silent switch on](https://support.apple.com/guide/iphone/silence-iphone-iph81c7fd7d1/ios).\nYou'll need to wait for an user interaction to check if the audio context is allowed.\n\n## Usage\n\n```bash\nnpm install @activetheory/ios-silent-bypass\n```\n\n```js\nimport SilentBypass from '@activetheory/ios-silent-bypass';\n\nfunction isIOS() {\n  return navigator.userAgent.includes('iPhone') || navigator.userAgent.includes('iPad');\n}\n\nlet silentBypass;\n\nif (isIOS()) {\n  silentBypass = new SilentBypass();\n}\n\n// after the library is initialized, you can check if the audio context is allowed\nconsole.log(silentBypass?.allowed);\n\n// if you want to remove the event listeners after the audio context is allowed, you can call the destroy method\nsilentBypass?.destroy();\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}