Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Merge pull request #2 from pose/master

Support for node webkit
latest commit 13b0dc7cf3
Victor authored

README.md

A Node.JS port of Lazar Laszlo's jsqrcode for decoding QR Codes.

Now you can use it in node or in the browser!

Usage

    var Canvas = require('canvas')
      , Image = Canvas.Image
      , qrcode = require('jsqrcode')(Canvas)

    var filename = __dirname + '/qrcode.png'

    var image = new Image()
    image.onload = function(){
      var result;
      try{
        result = qrcode.decode(image);
        console.log('result of qr code: ' + result);
      }catch(e){
        console.log('unable to read qr code');
      }
    }
    image.src = filename
Something went wrong with that request. Please try again.