QR Code
Converts user entered text to QR code which can be downloaded
Credits to : https://www.npmjs.com/package/qrcode
Installing qrcode
Install QrCode library from npm.
npm install qrcode
Generate QR Code from String
import QRCode from 'qrcode';
QRCode.toDataURL(
`https://www.apps4developers.com`,
{ margin: 2},
function (err, url) {
if (err) throw err;
console.log(url);
}
);
© 2022 Apps4Developers. All rights reserved.