Socket
Book a DemoInstallSign in
Socket

jsqrcode

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsqrcode

a node port of Lazar Laszlo's `jsqrcode` qr code decoder

latest
Source
npmnpm
Version
0.0.7
Version published
Weekly downloads
88
3.53%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

qr

FAQs

Package last updated on 05 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts