Installation
install via npm:
npm install @leduykhoa/qr-code --save
Basic Usage
// example #1
new QrCode(document.getElementById(`test`), `http://web-fast.com`);
// example #2
let oQrCode = new QrCode(`test`, {
text : `http://web-fast.com`,
width : 128,
height : 128
});
oQrCode.clear(); // Clear the QrCode.
oQrCode.makeCode(`http://web-fast.com`); // Re-create the QrCode.