{"_id":"@doichain/bcur-code-scanner-svelte","name":"@doichain/bcur-code-scanner-svelte","dist-tags":{"latest":"2.0.1"},"versions":{"2.0.1":{"name":"@doichain/bcur-code-scanner-svelte","repository":{"type":"git","url":"git+https://github.com/PeerPiper/qrcode-scanner-svelte.git"},"version":"2.0.1","scripts":{"dev":"vite dev","build":"vite build && npm run prepack","preview":"vite preview","prepare":"svelte-kit sync || echo ''","prepack":"svelte-kit sync && svelte-package && publint","check":"svelte-kit sync && svelte-check --tsconfig ./jsconfig.json","check:watch":"svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch","format":"prettier --write .","lint":"prettier --check . && eslint .","test:e2e":"playwright test","test":"npm run test:e2e"},"sideEffects":["**/*.css"],"svelte":"./dist/index.js","types":"./dist/index.d.ts","type":"module","exports":{".":{"types":"./dist/index.d.ts","svelte":"./dist/index.js"}},"peerDependencies":{"svelte":"^5.0.0"},"devDependencies":{"@eslint/compat":"^1.2.5","@eslint/js":"^9.18.0","@playwright/test":"^1.49.1","@sveltejs/adapter-auto":"^4.0.0","@sveltejs/kit":"^2.16.0","@sveltejs/package":"^2.0.0","@sveltejs/vite-plugin-svelte":"^5.0.0","@vkontakte/vk-qr":"^2.1.1","bitcoinjs-lib":"^6.1.7","eslint":"^9.18.0","eslint-config-prettier":"^10.0.1","eslint-plugin-svelte":"^2.46.1","globals":"^15.14.0","prettier":"^3.4.2","prettier-plugin-svelte":"^3.3.3","publint":"^0.3.2","svelte":"^5.0.0","svelte-check":"^4.0.0","typescript":"^5.0.0","vite":"^6.0.0"},"dependencies":{"@keystonehq/bc-ur-registry":"^0.7.0","@ngraveio/bc-ur":"^1.1.13","jsqr":"^1.4.0","vite-plugin-node-polyfills":"^0.23.0"},"_id":"@doichain/bcur-code-scanner-svelte@2.0.1","gitHead":"036d266fc0fa88b2b9b1f191786e54bf9421e48c","description":"QR Code scanner in a Svelte Component with [BC-UR Encoding](https://github.com/ngraveio/bc-ur) support. It is also known as \"animated\" QR-Codes.","bugs":{"url":"https://github.com/PeerPiper/qrcode-scanner-svelte/issues"},"homepage":"https://github.com/PeerPiper/qrcode-scanner-svelte#readme","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-kWV6mzh44Pp4/bidNaqP23msGxYrXHXGMDtGoi3oMhzoQBroHgZlHlCWhaudPKSRAdNUNlDzGCAeryFrFBVr8g==","shasum":"399b51237e87eb6a351691962f3f883b91a4e4f2","tarball":"https://registry.npmjs.org/@doichain/bcur-code-scanner-svelte/-/bcur-code-scanner-svelte-2.0.1.tgz","fileCount":22,"unpackedSize":28992,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFI/j3IepuOdZHHegp/QUc381MLpamLvtGyS5HzypaMzAiEA2LwnujpfRFM/j5/8S7ubQz7ibmVhzSyrOx57GHJ9BHI="}]},"_npmUser":{"name":"nandiji","email":"nico@le-space.de"},"directories":{},"maintainers":[{"name":"nandiji","email":"nico@le-space.de"},{"name":"davidreband","email":"david.reband@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bcur-code-scanner-svelte_2.0.1_1738561145206_0.32008666982257883"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-03T05:39:05.117Z","2.0.1":"2025-02-03T05:39:05.384Z","modified":"2025-02-03T05:39:05.659Z"},"maintainers":[{"name":"nandiji","email":"nico@le-space.de"},{"name":"davidreband","email":"david.reband@gmail.com"}],"description":"QR Code scanner in a Svelte Component with [BC-UR Encoding](https://github.com/ngraveio/bc-ur) support. It is also known as \"animated\" QR-Codes.","homepage":"https://github.com/PeerPiper/qrcode-scanner-svelte#readme","repository":{"type":"git","url":"git+https://github.com/PeerPiper/qrcode-scanner-svelte.git"},"bugs":{"url":"https://github.com/PeerPiper/qrcode-scanner-svelte/issues"},"readme":"# PWA QR Code Scanner with BC-UR support\n\nQR Code scanner in a Svelte Component with [BC-UR Encoding](https://github.com/ngraveio/bc-ur) support. It is also known as \"animated\" QR-Codes. \n\nBC-UR not to confuse with [BBQR - Better Bitcoin QR](https://bbqr.org/), which isn't supported yet. Both standards are supported by major Bitcoin wallets such as Electrum, BlueWallet, Sparrow Wallet and numerous other hardware wallets.\n\n\nBasic use:\n\nRun ```npm i @doichain/bcur-code-scanner-svelte``` \n\n```js\n<Scanner />\n```\n\nCustom\n\n```js\n\n    let result\n\n    <Scanner bind:result>\n        <!-- Insert custom results component if you want to do something unique with the QR code data -->\n\t\t<!-- override default by placing handler in here  -->\n\t\t{#if result}\n\t\t\t<div>\n\t\t\t\tThe result is: {result}\n\t\t\t</div>\n\t\t\t<div>\n\t\t\t\t<button on:click={() => (result = null)}>Scan again</button>\n\t\t\t</div>\n\t\t{/if}\n\t</Scanner>\n```\n\n## Run a demo \n1. Checkout this repo and run ```npm i```\n2. Run ```npm run dev```\n\n","readmeFilename":"README.md"}