qr-code-utils-1
v1.0.2
Published
__QR-CODE-UTILS__ qr code utils is an qr code reader and generator
Downloads
1
Readme
QR-CODE-UTILS qr code utils is an qr code reader and generator
Installation
npm install qr-code-utils
Usage
Qr code Generator
const { readQRCode, generateQRCode } = require('qr-code-utils-1');
generateQRCode('https://example.com', 'qrcode.png');//replate the https://example.com with the data you want to place in the qr
//and replace the 'qrcode.png' the desired path you want
Qr Code Reader
const { readQRCode, generateQRCode } = require('qr-code-utils-1');
readQRCode(`replace with the path|URL of the qr code`)
.then((result) => {
console.log('QR Code Data:', result);
})
.catch((error) => {
console.error('Error:', error);
});