Simplified version of Lazar Laszlo's
jsqrcode for node.
Port of Lazarsoft/jsqrcode that works in node. Simplified.
There is a different
jsqrcode in NPM that is more hands-on - with each file being turned into a module.
This version instead attempts to touch the original code as little as possible, and exports a wrapping decoder function rather than the Canvas-y stuff.
All you can do with this version (currently) is call:
var decodeImageData = require'jsqrcode-lite';decodeImageDatawidth: 2height: 2//rgba values255 255 255 255 0 0 0 0255 255 255 255 0 0 0 0console.logstrFromImageData;;
That's all I needed. If you'd like to expose other parts of the code, let me know.
Install the module with:
npm install jsqrcode-lite
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.
Copyright (c) 2012 Adam Ahmed
Licensed under the MIT license.