qr-encode

build status Coverage Status Version

JavaScript component to encode strings into QR codes. Works in both Node.js and the browser.

Package Info

Install

Node.js/Browserify

npm install --save qr-encode

QR Codes

You should glance at this: http://en.wikipedia.org/wiki/QR_code

Error Correction:

Usage

var qr = require('qr-encode')

var dataURI = qr("1F3sAm6ZtwLAUnj7d38pGFxtP3RVEvtsbV", {type: 6, size: 6, level: 'Q'})

//If using in browsers:
var img = new Image()
img.src = dataURI
document.body.appendChild(img)

Credits

Most of the code:

Copyright (c) 2009 Kazuhiko Arase

URL: http://www.d-project.com/

Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php

The word 'QR Code' is registered trademark of DENSO WAVE INCORPORATED http://www.denso-wave.com/qrcode/faqpatent-e.html

Some of the code / techniques from:

https://github.com/MatthewMueller/qr-code