Create QR codes
Generate QR codes. Based on Kazuhiko Arase's implementation.
$ component install matthewmueller/qr-code
var qr = require('qr-code');
var dataURI = qr('Hello!');
var img = new Image();
img.src = dataURI;
document.body.appendChild(img);
QR(text, options)
Create a QR code containing the given text
. The result is a dataURI that you can place in an image or background. QR also takes some options
including:
4
.M
4
.0
.size
should be based on pixels not some arbitrary number.MIT