scan_qr

0.0.1 • Public • Published

Installing Note: Chrome requires HTTPS when using the WebRTC API. Any pages using this library should be served over HTTPS.

NPM npm i scan_qr or yarn add scan_qr

Example

let scanner = new Qrscan.Scanner({ video: document.getElementById('preview') }); scanner.addListener('scan', function (content) { //Code Logic here .... console.log(content); }); Qrscan.Camera.getCameras() .then(function (cameras) { if (cameras.length > 0) { scanner.start(cameras[0]); } else { console.error('No cameras found.'); } }) .catch(function (e) { console.error(e); });

Readme

Keywords

Package Sidebar

Install

npm i scan_qr

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

1.47 MB

Total Files

9

Last publish

Collaborators

  • lam_pug