{"_id":"@adorsys-gis/qr-scanner","_rev":"4-3bface455c154074a65f42537592a4cf","name":"@adorsys-gis/qr-scanner","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@adorsys-gis/qr-scanner","version":"1.0.0","keywords":[],"author":{"name":"adorsys"},"license":"ISC","_id":"@adorsys-gis/qr-scanner@1.0.0","maintainers":[{"name":"awambeng","email":"awambengrodrick@gmail.com"},{"name":"francis-pouatcha","email":"francis.pouatcha@adorsys.com"}],"dist":{"shasum":"c4f4297085151dc494c536b8e26d45256ad606f7","tarball":"https://registry.npmjs.org/@adorsys-gis/qr-scanner/-/qr-scanner-1.0.0.tgz","fileCount":9,"integrity":"sha512-i8tUrVjXHzIDhxCPAbaSd895uW7OVpeFqL+cXUU+APl2aNAC6QzZpc2bYRoyRTnA2GogHrvT9GW19bJxxYjUbg==","signatures":[{"sig":"MEYCIQDHZDKGXpmAvV5ep7xeK+ml26hq+S6ditMnIJ0yBR/nXgIhANYB/kR/V0Ng+4q57mpx/Xpak/7kjCorkDbFLzluXbl1","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":140479},"main":"dist/src/index.js","type":"commonjs","gitHead":"2ecc40a501dc3a7a9f6b38b3fdb422275f10e7f2","scripts":{"lint":"eslint ./src --ext .ts","test":"jest --passWithNoTests","build":"rimraf dist && webpack --config webpack.config.js"},"typings":"dist/src/index.d.ts","_npmUser":{"name":"awambeng","email":"awambengrodrick@gmail.com"},"_npmVersion":"10.9.0","description":"This library provides a React-based component that allows you to scan QR codes using a device's camera. It utilizes the jsQR library to process QR code data in real-time from a video stream.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"jsqr":"^1.4.0","react":"18.2.0","tslib":"^2.3.0","react-dom":"18.2.0","@types/react":"^18.0.20","@emotion/react":"^11.11.3","@emotion/styled":"^11.11.0","@types/react-dom":"^18.0.9","react-router-dom":"^6.21.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"~8.48.0","rimraf":"^6.0.1","webpack":"^5.95.0","ts-loader":"^9.5.1","css-loader":"^7.1.2","typescript":"~5.2.2","@babel/core":"^7.14.5","@types/node":"18.16.9","webpack-cli":"^5.1.4","@types/jsdom":"^21.1.6","@types/react":"18.2.33","style-loader":"^4.0.0","react-refresh":"^0.10.0","@types/react-dom":"18.2.14","eslint-config-next":"13.4.4","@babel/preset-react":"^7.14.5","eslint-plugin-react":"7.32.2","eslint-plugin-import":"2.27.5","eslint-plugin-cypress":"^2.13.4","@testing-library/react":"14.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"6.7.1","mini-css-extract-plugin":"^2.9.1","eslint-plugin-react-hooks":"4.6.0"},"_npmOperationalInternal":{"tmp":"tmp/qr-scanner_1.0.0_1729866211361_0.325903411813361","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@adorsys-gis/qr-scanner","version":"1.0.1","keywords":[],"author":{"name":"adorsys"},"license":"ISC","_id":"@adorsys-gis/qr-scanner@1.0.1","maintainers":[{"name":"awambeng","email":"awambengrodrick@gmail.com"},{"name":"francis-pouatcha","email":"francis.pouatcha@adorsys.com"}],"dist":{"shasum":"b6317e0f2010dae21572d7cc71ab9c5b104382ac","tarball":"https://registry.npmjs.org/@adorsys-gis/qr-scanner/-/qr-scanner-1.0.1.tgz","fileCount":9,"integrity":"sha512-JzF/MduoF4Vu7NQGmitnja8zqO9DrncvLkqrKu6P7CQkpuncyr8JX3flqm2hmP4vNrG5gC32a6yvqr54wN+g+A==","signatures":[{"sig":"MEYCIQDBH1VDUaMB8s3zBnhGmoclragPKxybnAPO4TsxKUJlhwIhAOskczOtXIh6tNiqeyZImGdAkWsapgRniwCXo/23iAor","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":140647},"main":"dist/src/index.js","type":"commonjs","gitHead":"03471e9b1ee5137e260b357ba92dc8c70cd38932","scripts":{"lint":"eslint ./src --ext .ts","test":"jest --passWithNoTests","build":"rimraf dist && webpack --config webpack.config.js"},"typings":"dist/src/index.d.ts","_npmUser":{"name":"awambeng","email":"awambengrodrick@gmail.com"},"_npmVersion":"10.9.0","description":"This library provides a React-based component that allows you to scan QR codes using a device's camera. It utilizes the jsQR library to process QR code data in real-time from a video stream.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"jsqr":"^1.4.0","react":"18.2.0","tslib":"^2.3.0","react-dom":"18.2.0","@types/react":"^18.0.20","@emotion/react":"^11.11.3","@emotion/styled":"^11.11.0","@types/react-dom":"^18.0.9","react-router-dom":"^6.21.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"~8.48.0","rimraf":"^6.0.1","webpack":"^5.95.0","ts-loader":"^9.5.1","css-loader":"^7.1.2","typescript":"~5.2.2","@babel/core":"^7.14.5","@types/node":"18.16.9","webpack-cli":"^5.1.4","@types/jsdom":"^21.1.6","@types/react":"18.2.33","style-loader":"^4.0.0","react-refresh":"^0.10.0","@types/react-dom":"18.2.14","eslint-config-next":"13.4.4","@babel/preset-react":"^7.14.5","eslint-plugin-react":"7.32.2","eslint-plugin-import":"2.27.5","eslint-plugin-cypress":"^2.13.4","@testing-library/react":"14.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"6.7.1","mini-css-extract-plugin":"^2.9.1","eslint-plugin-react-hooks":"4.6.0"},"_npmOperationalInternal":{"tmp":"tmp/qr-scanner_1.0.1_1730389795018_0.5418275473446981","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@adorsys-gis/qr-scanner","version":"1.0.2","keywords":[],"author":{"name":"adorsys"},"license":"ISC","_id":"@adorsys-gis/qr-scanner@1.0.2","maintainers":[{"name":"awambeng","email":"awambengrodrick@gmail.com"},{"name":"francis-pouatcha","email":"francis.pouatcha@adorsys.com"}],"dist":{"shasum":"6a64cf0d63e51ddda8f7c21b2e618d521d208b92","tarball":"https://registry.npmjs.org/@adorsys-gis/qr-scanner/-/qr-scanner-1.0.2.tgz","fileCount":9,"integrity":"sha512-uYJFPZJmAOn7WnyOFo1TlFOaR3lJ2sHnxLFm1ci4VnTL2rHEZ2rCGdY7b3EEe7h8/DQjH+CfB0siIwWWRIfuwg==","signatures":[{"sig":"MEQCIAFMRC/wki5+gUMc8r108vDIUc6OpF1xhsHd+7NMfsi8AiA69eUIuEHUscRJ+prvZyHfynIw/CifHgWLl31H+NJkMg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":140765},"main":"dist/src/index.js","type":"commonjs","gitHead":"98be77ef7c5a368f009288cccf304ff103fa97fb","scripts":{"lint":"eslint ./src --ext .ts","test":"jest --passWithNoTests","build":"rimraf dist && webpack --config webpack.config.js"},"typings":"dist/src/index.d.ts","_npmUser":{"name":"awambeng","email":"awambengrodrick@gmail.com"},"_npmVersion":"10.9.0","description":"This library provides a React-based component that allows you to scan QR codes using a device's camera. It utilizes the jsQR library to process QR code data in real-time from a video stream.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"jsqr":"^1.4.0","react":"18.2.0","tslib":"^2.3.0","react-dom":"18.2.0","@types/react":"^18.0.20","@emotion/react":"^11.11.3","@emotion/styled":"^11.11.0","@types/react-dom":"^18.0.9","react-router-dom":"^6.21.2"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"~8.48.0","rimraf":"^6.0.1","webpack":"^5.95.0","ts-loader":"^9.5.1","css-loader":"^7.1.2","typescript":"~5.2.2","@babel/core":"^7.14.5","@types/node":"18.16.9","webpack-cli":"^5.1.4","@types/jsdom":"^21.1.6","@types/react":"18.2.33","style-loader":"^4.0.0","react-refresh":"^0.10.0","@types/react-dom":"18.2.14","eslint-config-next":"13.4.4","@babel/preset-react":"^7.14.5","eslint-plugin-react":"7.32.2","eslint-plugin-import":"2.27.5","eslint-plugin-cypress":"^2.13.4","@testing-library/react":"14.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"6.7.1","mini-css-extract-plugin":"^2.9.1","eslint-plugin-react-hooks":"4.6.0"},"_npmOperationalInternal":{"tmp":"tmp/qr-scanner_1.0.2_1730996887370_0.17368781825283808","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@adorsys-gis/qr-scanner","version":"1.0.3","keywords":[],"author":{"name":"adorsys"},"license":"ISC","_id":"@adorsys-gis/qr-scanner@1.0.3","maintainers":[{"name":"francis-pouatcha","email":"francis.pouatcha@adorsys.com"},{"name":"awambeng","email":"awambengrodrick@gmail.com"}],"dist":{"shasum":"cf9977d30426cc2c9c8c9b06249ec8ed0d461d36","tarball":"https://registry.npmjs.org/@adorsys-gis/qr-scanner/-/qr-scanner-1.0.3.tgz","fileCount":9,"integrity":"sha512-0Xwgjc06///Efo0ajsFRR2gidDcH1rhwWmUnQrkpQohVq0LT0od1MuRxz0HfmlJFFClKk2716EFXIfiUj2vJsg==","signatures":[{"sig":"MEUCIQDgp8A5kJ+J+ZA6wpXhkEdeQJ+yFiwSGcDxd4ipO/PqmgIgQnOt6SwVGB0LqIegeC9et6zzIfPeZs1zUnFFS8Etyoo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":140845},"main":"dist/src/index.js","type":"commonjs","gitHead":"d42419813052c00755fb42e1a45c4340e432dccb","scripts":{"lint":"eslint ./src --ext .ts","test":"jest --passWithNoTests","build":"rimraf dist && webpack --config webpack.config.js"},"typings":"dist/src/index.d.ts","_npmUser":{"name":"awambeng","email":"awambengrodrick@gmail.com"},"_npmVersion":"10.9.2","description":"This library provides a React-based component that allows you to scan QR codes using a device's camera. It utilizes the jsQR library to process QR code data in real-time from a video stream.","directories":{},"_nodeVersion":"20.15.1","dependencies":{"jsqr":"^1.4.0","tslib":"^2.3.0","@types/react":"^18.0.20","@emotion/react":"^11.11.3","@emotion/styled":"^11.11.0","@types/react-dom":"^18.0.9","react-router-dom":"^6.21.2"},"_hasShrinkwrap":false,"devDependencies":{"react":"18.2.0","eslint":"~8.48.0","rimraf":"^6.0.1","webpack":"^5.95.0","react-dom":"18.2.0","ts-loader":"^9.5.1","css-loader":"^7.1.2","typescript":"~5.2.2","@babel/core":"^7.14.5","@types/node":"18.16.9","webpack-cli":"^5.1.4","@types/jsdom":"^21.1.6","@types/react":"18.2.33","style-loader":"^4.0.0","react-refresh":"^0.10.0","@types/react-dom":"18.2.14","eslint-config-next":"13.4.4","@babel/preset-react":"^7.14.5","eslint-plugin-react":"7.32.2","eslint-plugin-import":"2.27.5","eslint-plugin-cypress":"^2.13.4","@testing-library/react":"14.0.0","eslint-config-prettier":"^9.0.0","eslint-plugin-jsx-a11y":"6.7.1","mini-css-extract-plugin":"^2.9.1","eslint-plugin-react-hooks":"4.6.0"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0"},"_npmOperationalInternal":{"tmp":"tmp/qr-scanner_1.0.3_1736496050387_0.09808146067913559","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-10-25T14:23:31.252Z","modified":"2025-03-04T12:00:29.951Z","1.0.0":"2024-10-25T14:23:31.595Z","1.0.1":"2024-10-31T15:49:55.247Z","1.0.2":"2024-11-07T16:28:07.646Z","1.0.3":"2025-01-10T08:00:50.578Z"},"author":{"name":"adorsys"},"license":"ISC","keywords":[],"description":"This library provides a React-based component that allows you to scan QR codes using a device's camera. It utilizes the jsQR library to process QR code data in real-time from a video stream.","maintainers":[{"email":"francis.pouatcha@adorsys.com","name":"francis-pouatcha"},{"email":"awambengrodrick@gmail.com","name":"awambeng"},{"email":"tcheutchouaarthur38@gmail.com","name":"t.arthur"}],"readme":"# qr-scanner\n\nThis library provides a React-based component that allows you to scan QR codes using a device's camera. It utilizes the jsQR library to process QR code data in real-time from a video stream.\n\n## Usage\n\nBelow is an example of how to use the QrScanner component in your application.\n\n```ts\nimport { QrScanner } from '@adorsys-gis/qr-scanner';\n\nconst App = () => {\n  // Handle successful scan result\n  const handleResult = (data, code) => {\n    console.log('QR code data:', data);\n  };\n\n  // Handle scanning error\n  const handleError = (error) => {\n    console.error(error);\n  };\n\n  return <QrScanner onResult={handleResult} onError={handleError} facingMode=\"environment\" scanDelay={500} />;\n};\n```\n\n## Props\n\n- `onResult`: a callback function that is called when a QR code is successfully scanned\n- `onError`: a callback function that is called when an error occurs during the scanning process\n- `facingMode`: specifies the camera to use for scanning (either \"environment\" or \"user\")\n- `scanDelay`: the delay between each scan in milliseconds\n\n## Error Handling\n\nThe QrScanner library provides error handling and display of error messages. If an error occurs during scanning, the onError callback function is called and the error message is displayed on the screen. Some common errors that can occur during scanning include:\n\nCamera permission errors\nQR code decoding errors\nNetwork errors\n","readmeFilename":"README.md"}