{"_id":"@capawesome/capacitor-torch","_rev":"11-5446c26eba90e6ee704c0c503ff1a669","name":"@capawesome/capacitor-torch","dist-tags":{"dev":"7.0.0-dev.1765885034","latest":"8.0.2"},"versions":{"6.0.0":{"name":"@capawesome/capacitor-torch","version":"6.0.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@6.0.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"258528ecb6fc82f333d3624c9553b459bbcbb805","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-6.0.0.tgz","fileCount":28,"integrity":"sha512-6lapsUmusEYJXDCJXkJjkPiUkLYcfO3P2dQxy0+kZUSxDckW/qKG2F8qQK9aDBBE3P59pZrtSYbL6MAZeGfNEg==","signatures":[{"sig":"MEYCIQCIUwANW0ZnQoWBAowwkwG9sfRHQNJjk4PCOeFKlvvbsQIhALdUV9QgENtcY4LmHWo7ZEMKqJ7BHJgAG6+5/o04XRSA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33624},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"0c38eaef320a14b7b08cd9d160ebe8b3119f9f1d","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"10.7.0","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"18.20.4","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"7.32.0","rimraf":"3.0.2","rollup":"2.77.2","prettier":"2.3.2","swiftlint":"1.0.1","typescript":"4.1.5","@capacitor/cli":"6.0.0","@capacitor/ios":"6.0.0","@capacitor/core":"6.0.0","@capacitor/docgen":"0.2.0","@capacitor/android":"6.0.0","@ionic/eslint-config":"0.3.0","prettier-plugin-java":"1.0.2","@ionic/swiftlint-config":"1.1.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_6.0.0_1726119723198_0.8109897955406835","host":"s3://npm-registry-packages"}},"6.1.0":{"name":"@capawesome/capacitor-torch","version":"6.1.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@6.1.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"18f1f1164e7f96a369da283866d6781ccd6a0430","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-6.1.0.tgz","fileCount":28,"integrity":"sha512-sANd3N2P9VO+spK+m4bxScA5gdKdVN8xT2fLNcby5XzuQjRDETl/iLE67y0wKmkj2Hl7PCaP0UbKziF0CQdHtg==","signatures":[{"sig":"MEUCIHT0kqWSk4u14XI+8IoGNtfQ6MoAo8bXM/iTOxoI7DZfAiEAhIFpwFQYgb5DUsbpu0im/JyyLEv6zdGKRofWN0GhMXg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":35947},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"c4ee341ff906b5aa4050e7aceea37cb5eb534437","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"18.20.5","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"7.32.0","rimraf":"3.0.2","rollup":"2.77.2","prettier":"2.3.2","swiftlint":"1.0.1","typescript":"4.1.5","@capacitor/cli":"6.0.0","@capacitor/ios":"6.0.0","@capacitor/core":"6.0.0","@capacitor/docgen":"0.2.0","@capacitor/android":"6.0.0","@ionic/eslint-config":"0.3.0","prettier-plugin-java":"1.0.2","@ionic/swiftlint-config":"1.1.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_6.1.0_1732540444804_0.3098582890397268","host":"s3://npm-registry-packages"}},"6.2.0":{"name":"@capawesome/capacitor-torch","version":"6.2.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@6.2.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"f784fd5023536054d8159cdfd7d9cc06252b48ef","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-6.2.0.tgz","fileCount":28,"integrity":"sha512-CnJI9ComYO+H/sUzXvh0GUEbAbUbpBu/s8CpxccjBIQKYjh7a/I7OHE0/SHhgFk2uLAnwMu6hutWUEPn9mVOlA==","signatures":[{"sig":"MEUCIFe8akdAeJnPzU7ov94O6kbPO6oquJDREzhZ/tkN1anTAiEAyl4rQWqaso5Fj3a36xKR+BDacxeh/r0zpNUR6qXyXlU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69839},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"87336134256404b705f3d5c0cc0fa0a00f01bfa3","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"18.20.5","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"7.32.0","rimraf":"3.0.2","rollup":"2.77.2","prettier":"2.3.2","swiftlint":"1.0.1","typescript":"4.1.5","@capacitor/cli":"6.0.0","@capacitor/ios":"6.0.0","@capacitor/core":"6.0.0","@capacitor/docgen":"0.2.0","@capacitor/android":"6.0.0","@ionic/eslint-config":"0.3.0","prettier-plugin-java":"1.0.2","@ionic/swiftlint-config":"1.1.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_6.2.0_1733766848476_0.14707955923014548","host":"s3://npm-registry-packages-npm-production"}},"6.2.1":{"name":"@capawesome/capacitor-torch","version":"6.2.1","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@6.2.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"b37ed0f13491ab8446ad10a189f68063cb71b95a","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-6.2.1.tgz","fileCount":28,"integrity":"sha512-jUVnwKDhZMR2nTVZJnXfbBbRZWx8Od/7AbU4jFDbZY8VY1hVSqMv8TX0/jgskUuEOdESgbNrHTipQzOBf53Xfg==","signatures":[{"sig":"MEUCICF8Ng0wukv7JGeaZsnDvUcH3qhwIaTAVPdEwq/zNKVUAiEAyWNyexz8pgq5PmyALCx8UUNw9QHOpRRiDScU+lKSOmg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69879},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"c0743cb78dfb457ff3216ae7b06a4e43fd583b59","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.js","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"18.20.5","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"7.32.0","rimraf":"3.0.2","rollup":"2.77.2","prettier":"2.3.2","swiftlint":"1.0.1","typescript":"4.1.5","@capacitor/cli":"6.0.0","@capacitor/ios":"6.0.0","@capacitor/core":"6.0.0","@capacitor/docgen":"0.2.0","@capacitor/android":"6.0.0","@ionic/eslint-config":"0.3.0","prettier-plugin-java":"1.0.2","@ionic/swiftlint-config":"1.1.2"},"peerDependencies":{"@capacitor/core":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_6.2.1_1733993274922_0.4737051213791903","host":"s3://npm-registry-packages-npm-production"}},"7.0.0":{"name":"@capawesome/capacitor-torch","version":"7.0.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@7.0.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"48f31c688d02bf3d62efc8e4ca3bd16bc32c02a3","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-7.0.0.tgz","fileCount":27,"integrity":"sha512-2tgJoBRLgyg5g2WQhQjIdjofSXz/a0mbQE6P0gHXyXVKHu8oTGYkAPs3mmvZu2EcVwwtrRuGPWKLtwXkx+g46A==","signatures":[{"sig":"MEQCICCeoXKaPpLA9g9QS9bEACf1xBoUjs3imtNjPRBEGzz0AiAoYPT17SMnJuuAEMn6UvcpwDjQRnX5z6ovbsS/D/y8Iw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69796},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"cfabccf4215a6ea4736f7046fee762d1056362bd","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"20.18.2","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.0.1","rollup":"4.30.1","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"4.1.5","@capacitor/cli":"7.0.0","@capacitor/ios":"7.0.0","@capacitor/core":"7.0.0","@capacitor/docgen":"0.3.0","@capacitor/android":"7.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_7.0.0_1738230396210_0.4952152978100568","host":"s3://npm-registry-packages-npm-production"}},"7.0.1":{"name":"@capawesome/capacitor-torch","version":"7.0.1","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@7.0.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"0eefc6188ef3119196620b6db143ae3727c0dedc","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-7.0.1.tgz","fileCount":27,"integrity":"sha512-uXuBUkznmcpjO1a2sI52SW+3E5c+9SsxKseQOgkQboPPFrqrQO0jh4bbptGkyoxVtiMKZP+jXRDtYxY088relA==","signatures":[{"sig":"MEYCIQC74GDoO4GKLRRhA5aIcC5BNi5Ns7DtBX0JUwW5UnM+7gIhAK8VYjM7FQ1MGT4YjIO4y57hCl2Ls6XnBsuvyE8R0FqT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69772},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"6bb5a4a6ca283d12fe3a5089019b25a679b84ab4","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"20.18.2","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.0.1","rollup":"4.30.1","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"4.1.5","@capacitor/cli":"7.0.0","@capacitor/ios":"7.0.0","@capacitor/core":"7.0.0","@capacitor/docgen":"0.3.0","@capacitor/android":"7.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_7.0.1_1738402963710_0.2785499601538117","host":"s3://npm-registry-packages-npm-production"}},"7.0.2":{"name":"@capawesome/capacitor-torch","version":"7.0.2","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@7.0.2","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"7e522d820fdeb5b7cffc450f75b0cd0e4ae372ae","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-7.0.2.tgz","fileCount":27,"integrity":"sha512-eXwGZ+bPzPNg8nEGIJPcsQJsq0RPmB3p+TAH9N5uUbOxXomM1077reAdRrUzhWjzZ6uanGnhI7CpVuWijH7m1Q==","signatures":[{"sig":"MEYCIQD41IJOSIMphFvXscl1Gyq7KA+OPpxiMfuEmgkr5Cl0BgIhAPr2Q052M5Y+lySQywFW2OtO6HmzQ+Brkzw7PV2nq1oG","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":69856},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"dd6c0293a91a39a9910499d82fe38692f66b4fc8","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"10.8.2","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"20.18.2","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.0.1","rollup":"4.30.1","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"4.1.5","@capacitor/cli":"7.0.0","@capacitor/ios":"7.0.0","@capacitor/core":"7.0.0","@capacitor/docgen":"0.3.0","@capacitor/android":"7.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_7.0.2_1739958699480_0.8058280425570628","host":"s3://npm-registry-packages-npm-production"}},"7.0.0-dev.1765885034":{"name":"@capawesome/capacitor-torch","version":"7.0.0-dev.1765885034","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@7.0.0-dev.1765885034","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"67b5363e5d875fc93ef6900c34b0825d1be94752","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-7.0.0-dev.1765885034.tgz","fileCount":27,"integrity":"sha512-mWeslx8BWjKSJs0FSH0+Izqq+LA6ImfhcvtWuFDtpuY8J1rXL0EiVZEfSkiF1+ueHfgpwFIbXN3M3wrJSPrUVg==","signatures":[{"sig":"MEUCIDvu6C7OBMiiyPYHvlJ2/a9GVwRFSlSPRwaGHnDdX4+sAiEAh3K2kY9di3vHaAigM66jnDxGJJfHvoEsMQ0zn0ni9+k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71586},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"bd386571b9151d22617cccbd0eda18efc0a5df3b","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"robingenz","email":"mail@robingenz.dev"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.5.2","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"20.19.4","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_7.0.0-dev.1765885034_1765885554959_0.9196004284785584","host":"s3://npm-registry-packages-npm-production"}},"8.0.0":{"name":"@capawesome/capacitor-torch","version":"8.0.0","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@8.0.0","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"7e21226cc61ffcc8ef88576aa1c080a08b7f185e","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-8.0.0.tgz","fileCount":27,"integrity":"sha512-uaz9CmdflZ9ZBBKn9WFIWxokpQ8BdFy0Im+FxHNwZC8HnMZ3R5yswThrgPd4q3MfUcCO/3p1916wUPvmJ4Pwgw==","signatures":[{"sig":"MEUCIQCP+fIvBFiXPh2VV7Nni1WldBOqGic8KHiYvy7nQbonIAIgFdfF6+2PvRWLBNUMsHVnBmNt1vxTfXDq6xpUaFB+/x8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-torch@8.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":71571},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"762a4ca86dd18ce52c3a10977d7446866fe80e80","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cbbd5ab7-77c1-4c2f-8d39-b50fdec5b82b"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.7.0","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"22.21.1","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_8.0.0_1765974759399_0.5096789709186773","host":"s3://npm-registry-packages-npm-production"}},"8.0.1":{"name":"@capawesome/capacitor-torch","version":"8.0.1","keywords":["capacitor","plugin","native"],"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","_id":"@capawesome/capacitor-torch@8.0.1","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"homepage":"https://capawesome.io/plugins/screen-orientation/","bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"dist":{"shasum":"9d469bca172cf3325c7430608b7fc9896276cc17","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-8.0.1.tgz","fileCount":27,"integrity":"sha512-H6Qi3lTXXn6nl8zpDnkBo4+Whpu9HwByElGUOA/7zNz9HDU9o8wrUaP5ul1Ejtkkd4g9Fa/DCfTHYcftYOJfbQ==","signatures":[{"sig":"MEQCIBgx2rpT8EbHCHSY+rIsGGKgWajRskyeDEZMr7EKlvjqAiAB5wSSQVO22k72HvZFTnXbjBWOJJ7smzvaWpD2Cly6Uw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-torch@8.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":71580},"main":"dist/plugin.cjs.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","module":"dist/esm/index.js","funding":[{"url":"https://github.com/sponsors/capawesome-team/","type":"github"},{"url":"https://opencollective.com/capawesome","type":"opencollective"}],"gitHead":"fa5661b9d1f85edd21f503e2eeb9875d0089f0ae","scripts":{"fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","eslint":"eslint . --ext ts","verify":"npm run verify:ios && npm run verify:android && npm run verify:web","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:web":"npm run build","prepublishOnly":"npm run build","verify:android":"cd android && ./gradlew clean build test && cd ..","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd .."},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cbbd5ab7-77c1-4c2f-8d39-b50fdec5b82b"}},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"swiftlint":"@ionic/swiftlint-config","repository":{"url":"git+https://github.com/capawesome-team/capacitor-plugins.git","type":"git"},"_npmVersion":"11.10.0","description":"Capacitor plugin for switching the flashlight on and off.","directories":{},"_nodeVersion":"22.22.0","eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"8.57.0","rimraf":"6.1.2","rollup":"4.53.3","prettier":"3.4.2","swiftlint":"2.0.0","typescript":"5.9.3","@capacitor/cli":"8.0.0","@capacitor/ios":"8.0.0","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/android":"8.0.0","@ionic/eslint-config":"0.4.0","prettier-plugin-java":"2.6.7","@ionic/swiftlint-config":"2.0.0"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/capacitor-torch_8.0.1_1771486784992_0.9826635710063956","host":"s3://npm-registry-packages-npm-production"}},"8.0.2":{"name":"@capawesome/capacitor-torch","version":"8.0.2","description":"Capacitor plugin for switching the flashlight on and off on Android, iOS, and Web.","main":"dist/plugin.cjs.js","module":"dist/esm/index.js","types":"dist/esm/index.d.ts","unpkg":"dist/plugin.js","author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/capawesome-team/capacitor-plugins.git"},"bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"funding":[{"type":"github","url":"https://github.com/sponsors/capawesome-team/"},{"type":"opencollective","url":"https://opencollective.com/capawesome"}],"homepage":"https://capawesome.io/docs/sdks/capacitor/torch/","keywords":["capacitor","plugin","native","capacitor-plugin","torch","flashlight","flash","torch control","camera flash"],"scripts":{"verify":"npm run verify:ios && npm run verify:android && npm run verify:web","verify:ios":"cd ios && pod install && xcodebuild -workspace Plugin.xcworkspace -scheme Plugin -destination generic/platform=iOS && cd ..","verify:android":"cd android && ./gradlew clean build test && cd ..","verify:web":"npm run build","lint":"npm run eslint && npm run prettier -- --check && npm run swiftlint -- lint","fmt":"npm run eslint -- --fix && npm run prettier -- --write && npm run swiftlint -- --fix --format","eslint":"eslint . --ext ts","prettier":"prettier \"**/*.{css,html,ts,js,java}\"","swiftlint":"node-swiftlint","docgen":"docgen --api TorchPlugin --output-readme README.md --output-json dist/docs.json","build":"npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs","clean":"rimraf ./dist","watch":"tsc --watch","ios:pod:install":"cd ios && pod install --repo-update && cd ..","ios:spm:install":"cd ios && swift package resolve && cd ..","prepublishOnly":"npm run build"},"devDependencies":{"@capacitor/android":"8.0.0","@capacitor/cli":"8.4.2","@capacitor/core":"8.0.0","@capacitor/docgen":"0.3.1","@capacitor/ios":"8.0.0","@ionic/eslint-config":"0.4.0","eslint":"8.57.0","prettier-plugin-java":"2.9.7","rimraf":"6.1.2","rollup":"4.62.3","swiftlint":"2.0.0","typescript":"5.9.3"},"peerDependencies":{"@capacitor/core":">=8.0.0"},"eslintConfig":{"extends":"@ionic/eslint-config/recommended"},"capacitor":{"ios":{"src":"ios"},"android":{"src":"android"}},"publishConfig":{"access":"public"},"gitHead":"f60bd41dc022cd55819c78e1c03dfac147a77b98","_id":"@capawesome/capacitor-torch@8.0.2","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-SsmzBZ1SCMeireH7rALvEdqBjGMmwJW0rGalGdQk7qsDDWjS8AruLq6yA05OqEEAgVsgpt7Tx7Vw+w7Z/LGOEg==","shasum":"a972c41d7c933a6a0e8ea08ae0b2d2f4d17ae7fc","tarball":"https://registry.npmjs.org/@capawesome/capacitor-torch/-/capacitor-torch-8.0.2.tgz","fileCount":27,"unpackedSize":75481,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@capawesome%2fcapacitor-torch@8.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCSf1lYSSIoKBOE4900kh7lZLFRAYt/ZJRNsysSIV1o1wIhALz6Q0+IDz6Z/O4ii5AZmzr7KaCOLga+bFzkDvuibiQ0"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:cbbd5ab7-77c1-4c2f-8d39-b50fdec5b82b"}},"directories":{},"maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/capacitor-torch_8.0.2_1788353685535_0.3054005383905778"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-12T05:42:03.081Z","modified":"2026-09-02T12:54:45.995Z","6.0.0":"2024-09-12T05:42:03.328Z","6.1.0":"2024-11-25T13:14:04.963Z","6.2.0":"2024-12-09T17:54:08.709Z","6.2.1":"2024-12-12T08:47:55.090Z","7.0.0":"2025-01-30T09:46:36.387Z","7.0.1":"2025-02-01T09:42:43.881Z","7.0.2":"2025-02-19T09:51:39.699Z","7.0.0-dev.1765885034":"2025-12-16T11:45:55.149Z","8.0.0":"2025-12-17T12:32:39.545Z","8.0.1":"2026-02-19T07:39:45.118Z","8.0.2":"2026-09-02T12:54:45.663Z"},"bugs":{"url":"https://github.com/capawesome-team/capacitor-plugins/issues"},"author":{"name":"Robin Genz","email":"mail@robingenz.dev"},"license":"MIT","homepage":"https://capawesome.io/docs/sdks/capacitor/torch/","keywords":["capacitor","plugin","native","capacitor-plugin","torch","flashlight","flash","torch control","camera flash"],"repository":{"type":"git","url":"git+https://github.com/capawesome-team/capacitor-plugins.git"},"description":"Capacitor plugin for switching the flashlight on and off on Android, iOS, and Web.","maintainers":[{"name":"robingenz","email":"mail@robingenz.dev"}],"readme":"# Capacitor Torch Plugin\n\nCapacitor plugin for switching the flashlight on and off.\n\n<div class=\"capawesome-z29o10a\">\n  <a href=\"https://cloud.capawesome.io/\" target=\"_blank\">\n    <img alt=\"Deliver Live Updates to your Capacitor app with Capawesome Cloud\" src=\"https://cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.png?t=1\" />\n  </a>\n</div>\n\n## Features\n\nThe Capacitor Torch plugin is one of the most complete flashlight control solutions for Capacitor apps. Here are some of the key features:\n\n- 🖥️ **Cross-platform**: Supports Android, iOS, and Web.\n- 🔦 **Torch control**: Enable, disable, and toggle torch/flashlight.\n- ✅ **Availability check**: Check if torch is available on the device.\n- 🌐 **Web support**: Uses MediaStream API for web torch control.\n- 🤝 **Compatibility**: Works alongside the [Barcode Scanning](https://capawesome.io/docs/sdks/capacitor/mlkit/barcode-scanning/) and [Light Sensor](https://capawesome.io/docs/sdks/capacitor/light-sensor/) plugins.\n- 🔁 **Up-to-date**: Always supports the latest Capacitor version.\n\nMissing a feature? Just [open an issue](https://github.com/capawesome-team/capacitor-plugins/issues) and we'll take a look!\n\n## Use Cases\n\nThe Torch plugin is typically used whenever an app needs to control the device's flashlight, for example:\n\n- **Flashlight features**: Turn the flashlight on and off with a single tap in your app.\n- **Barcode and QR code scanning**: Let users enable the torch to scan codes in low-light environments.\n- **Document capture**: Improve capture quality in dark surroundings by enabling the torch.\n- **Signaling**: Toggle the torch to draw attention, for example as an emergency signal light.\n\n## Compatibility\n\n| Plugin Version | Capacitor Version | Status         |\n| -------------- | ----------------- | -------------- |\n| 8.x.x          | >=8.x.x           | Active support |\n\n## Installation\n\nYou can use our **AI-Assisted Setup** to install the plugin.\nAdd the [Capawesome Skills](https://github.com/capawesome-team/skills) to your AI tool using the following command:\n\n```bash\nnpx skills add capawesome-team/skills --skill capacitor-plugins\n```\n\nThen use the following prompt:\n\n```\n Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-torch` plugin in my project.\n```\n\nIf you prefer **Manual Setup**, install the plugin by running the following commands and follow the platform-specific instructions below:\n\n```bash\nnpm install @capawesome/capacitor-torch\nnpx cap sync\n```\n\n### Android\n\n#### Permissions\n\nThis API requires the following permissions be added to your `AndroidManifest.xml` before the `application` tag:\n\n```xml\n<!-- To get access to the flashlight. -->\n<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>\n```\n\n#### Variables\n\nIf needed, you can define the following project variable in your app’s `variables.gradle` file to change the default version of the dependency:\n\n- `$androidxCameraCoreVersion` version of `androidx.camera:camera-core` (default: `1.5.2`)\n\nThis can be useful if you encounter dependency conflicts with other plugins in your project.\n\n## Configuration\n\nNo configuration required for this plugin.\n\n## Demo\n\nA working example can be found here: [robingenz/capacitor-plugin-demo](https://github.com/robingenz/capacitor-plugin-demo)\n\n## Usage\n\nThe following examples show how to check if the torch is available, turn the torch on and off, toggle the torch, and check if the torch is enabled.\n\n### Check if the torch is available\n\nNot every device has a torch, so check the availability before showing a flashlight control in your UI:\n\n```typescript\nimport { Torch } from '@capawesome/capacitor-torch';\n\nconst isAvailable = async () => {\n    const result = await Torch.isAvailable();\n    return result.available;\n};\n```\n\n### Turn the torch on and off\n\nEnable or disable the torch. On Android, these methods require SDK 23 or newer. On the Web, you can optionally pass your own `MediaStream` with a video track via the `stream` option:\n\n```typescript\nimport { Torch } from '@capawesome/capacitor-torch';\n\nconst enable = async () => {\n  await Torch.enable();\n};\n\nconst disable = async () => {\n  await Torch.disable();\n};\n```\n\n### Toggle the torch\n\nSwitch the torch to the opposite state with a single call:\n\n```typescript\nimport { Torch } from '@capawesome/capacitor-torch';\n\nconst toggle = async () => {\n  await Torch.toggle();\n};\n```\n\n### Check if the torch is enabled\n\nRead the current state of the torch, for example to display the state in your UI:\n\n```typescript\nimport { Torch } from '@capawesome/capacitor-torch';\n\nconst isEnabled = async () => {\n    const result = await Torch.isEnabled();\n    return result.enabled;\n};\n```\n\n## API\n\n<docgen-index>\n\n* [`enable(...)`](#enable)\n* [`disable(...)`](#disable)\n* [`isAvailable()`](#isavailable)\n* [`isEnabled(...)`](#isenabled)\n* [`toggle(...)`](#toggle)\n* [Interfaces](#interfaces)\n\n</docgen-index>\n\n<docgen-api>\n<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->\n\n### enable(...)\n\n```typescript\nenable(options?: EnableOptions | undefined) => Promise<void>\n```\n\nEnable the torch.\n\nOnly available on Android (SDK 23+), iOS and Web.\n\n| Param         | Type                                                    |\n| ------------- | ------------------------------------------------------- |\n| **`options`** | <code><a href=\"#enableoptions\">EnableOptions</a></code> |\n\n**Since:** 6.0.0\n\n--------------------\n\n\n### disable(...)\n\n```typescript\ndisable(options?: DisableOptions | undefined) => Promise<void>\n```\n\nDisable the torch.\n\nOnly available on Android (SDK 23+), iOS and Web.\n\n| Param         | Type                                                      |\n| ------------- | --------------------------------------------------------- |\n| **`options`** | <code><a href=\"#disableoptions\">DisableOptions</a></code> |\n\n**Since:** 6.0.0\n\n--------------------\n\n\n### isAvailable()\n\n```typescript\nisAvailable() => Promise<IsAvailableResult>\n```\n\nCheck if the torch is available.\n\nOnly available on Android, iOS and Web.\n\n**Returns:** <code>Promise&lt;<a href=\"#isavailableresult\">IsAvailableResult</a>&gt;</code>\n\n**Since:** 6.0.0\n\n--------------------\n\n\n### isEnabled(...)\n\n```typescript\nisEnabled(options?: IsEnabledOptions | undefined) => Promise<IsEnabledResult>\n```\n\nCheck if the torch is enabled.\n\nOnly available on Android, iOS and Web.\n\n| Param         | Type                                                          |\n| ------------- | ------------------------------------------------------------- |\n| **`options`** | <code><a href=\"#isenabledoptions\">IsEnabledOptions</a></code> |\n\n**Returns:** <code>Promise&lt;<a href=\"#isenabledresult\">IsEnabledResult</a>&gt;</code>\n\n**Since:** 6.0.0\n\n--------------------\n\n\n### toggle(...)\n\n```typescript\ntoggle(options?: ToggleOptions | undefined) => Promise<void>\n```\n\nToggle the torch.\n\nOnly available on Android (SDK 23+), iOS and Web.\n\n| Param         | Type                                                    |\n| ------------- | ------------------------------------------------------- |\n| **`options`** | <code><a href=\"#toggleoptions\">ToggleOptions</a></code> |\n\n**Since:** 6.0.0\n\n--------------------\n\n\n### Interfaces\n\n\n#### EnableOptions\n\n| Prop         | Type                     | Description                                                                                                                                                                                             | Since |\n| ------------ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |\n| **`stream`** | <code>MediaStream</code> | The stream of media to enable the torch on. **Attention**: The stream must have a video track. The facing mode of the video track must be the one that corresponds to the torch. Only available on Web. | 6.2.0 |\n\n\n#### DisableOptions\n\n| Prop         | Type                     | Description                                                                                                                                                                                              | Since |\n| ------------ | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |\n| **`stream`** | <code>MediaStream</code> | The stream of media to disable the torch on. **Attention**: The stream must have a video track. The facing mode of the video track must be the one that corresponds to the torch. Only available on Web. | 6.2.0 |\n\n\n#### IsAvailableResult\n\n| Prop            | Type                 | Description                            | Since |\n| --------------- | -------------------- | -------------------------------------- | ----- |\n| **`available`** | <code>boolean</code> | Whether the torch is available or not. | 6.0.0 |\n\n\n#### IsEnabledResult\n\n| Prop          | Type                 | Description                          | Since |\n| ------------- | -------------------- | ------------------------------------ | ----- |\n| **`enabled`** | <code>boolean</code> | Whether the torch is enabled or not. | 6.0.0 |\n\n\n#### IsEnabledOptions\n\n| Prop         | Type                     | Description                                                                                                                                                                                                          | Since |\n| ------------ | ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |\n| **`stream`** | <code>MediaStream</code> | The stream of media to check if the torch is enabled on. **Attention**: The stream must have a video track. The facing mode of the video track must be the one that corresponds to the torch. Only available on Web. | 6.2.0 |\n\n\n#### ToggleOptions\n\n| Prop         | Type                     | Description                                                                                                                                                                                             | Since |\n| ------------ | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |\n| **`stream`** | <code>MediaStream</code> | The stream of media to toggle the torch on. **Attention**: The stream must have a video track. The facing mode of the video track must be the one that corresponds to the torch. Only available on Web. | 6.2.0 |\n\n</docgen-api>\n\n## FAQ\n\n### Which platforms are supported by this plugin?\n\nThe plugin is available on Android, iOS and Web. On Android, the `enable(...)`, `disable(...)` and `toggle(...)` methods require SDK 23 or newer. On the Web, the plugin uses the MediaStream API to control the torch.\n\n### Why does `isAvailable` return false on my device?\n\nThe `isAvailable()` method reports whether the current device provides a torch. It returns `false` on devices without a torch, for example many tablets or desktop browsers. Use this method to hide or disable your flashlight UI on such devices.\n\n### Do I need any permissions to use this plugin?\n\nOn Android, you need to add the `FLASHLIGHT` permission to your `AndroidManifest.xml` file, see the [Installation](#installation) section. No permissions are required on iOS.\n\n### How does the torch control work on the web?\n\nThe web implementation uses the MediaStream API. You can optionally pass your own `MediaStream` via the `stream` option of `enable(...)`, `disable(...)`, `isEnabled(...)` and `toggle(...)`. The stream must have a video track, and the facing mode of the video track must be the one that corresponds to the torch.\n\n### Can I use this plugin with Ionic, React, Vue or Angular?\n\nYes, the plugin is framework-agnostic. It works in any Capacitor app regardless of the web framework, including Ionic with Angular, React, or Vue, as well as plain JavaScript projects.\n\n## Related Plugins\n\n- [Barcode Scanning](https://capawesome.io/docs/sdks/capacitor/mlkit/barcode-scanning/): Scan barcodes and QR codes with ML Kit Barcode Scanning.\n- [Light Sensor](https://capawesome.io/docs/sdks/capacitor/light-sensor/): Read the device's ambient light sensor.\n- [Screen Brightness](https://capawesome.io/docs/sdks/capacitor/screen-brightness/): Read and control the screen brightness.\n\n## Newsletter\n\nStay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our [Capawesome Newsletter](https://cloud.capawesome.io/newsletter/).\n\n## Changelog\n\nSee [CHANGELOG.md](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/torch/CHANGELOG.md).\n\n## License\n\nSee [LICENSE](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/torch/LICENSE).\n","readmeFilename":"README.md"}