qr-code-utils-1

1.0.2 • Public • Published

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);
  });

Readme

Keywords

none

Package Sidebar

Install

npm i qr-code-utils-1

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

2.57 kB

Total Files

5

Last publish

Collaborators

  • buckyy26