
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
@kuiper/svelte-scan-qrcode
Advanced tools
Scan QR Code on browser by open camera or upload QR Code image. Support open cameras on Android and iOS browsers.
Scan QR Code on browser by open camera or upload QR Code image. Support open cameras on Android and iOS browsers.
Install @kuiper/svelte-scan-qrcode
npm install --save @kuiper/svelte-scan-qrcode
bind:scanResult
to get scan result <script lang="ts">
import { ScanQRCode } from "@kuiper/svelte-scan-qrcode";
let result = "";
</script>
<ScanQRCode bind:scanResult={result} options={{}} />
enableQRCodeReaderButton
and options
<script lang="ts">
import { goto } from "$app/navigation";
import { ScanQRCode } from "@kuiper/svelte-scan-qrcode";
let result = "";
function _onPermissionError() {
alert("Permission rejected");
location.reload();
}
function _onResulted() {
if (result.includes("love")) {
goto("/result"); // go to result page
}
}
</script>
<ScanQRCode
bind:scanResult={result}
enableQRCodeReaderButton={true}
options={{
onPermissionError: () => _onPermissionError(),
onResulted: () => _onResulted(),
}}
/>
string
.bind:scanResult
to get scan result.boolean
.@kuiper/svelte-scan-qrcode
package will read QR Code from image.{ onPermissionError?: Function; onResulted?: Function; }
@kuiper/svelte-scan-qrcode
package request camera get rejected.@kuiper/svelte-scan-qrcode
package gets the scan result from QR Code.FAQs
Scan QR Code on browser by open camera or upload QR Code image. Support open cameras on Android and iOS browsers.
We found that @kuiper/svelte-scan-qrcode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.