This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
@manufosela/qr-code-generator with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
QRCodeGenerator ES6 class.
const qr = new QRCodeGenerator(typeNumber, errorCorrectLevel);
typeNumber: from 1 to 10
errorCorrectLevel: it can be:
const qr = new QRCodeGenerator(4, 'M'); const text = "https://manufosela.es"; qr.addData(text); qr.make(); qrcodeHTML = qr.createImgTag(); document.querySelector('#qr').innerHTML = qrcodeHTML;