node package manager


Quickly create a QR-Code PNG in pure JavaScript


This is a very simple QR-Code generator that outputs a PNG-Buffer. It's written in pure JavaScript.

var qr=require('qrpng');
qr('this is a sample code', function(err, png) {
  // png contains the PNG as a buffer. You can write it to a file for example.

It has only one function:

function qr(content[, scale], callback)

scale is the pixel extent of a QR-Code data pixel.

npm install qrpng

This uses "QRCode for JavaScript" which Kazuhiko Arase thankfully MIT licensed. This modules is also licensed under MIT license.