Another QR code library for nodejs, aiming at allowing more customization on your QR code result like changing background or changing code color (still needs some work).
This library is based on the native Cairo and libqrencode library, so as requirements you should have this two libraries installed on your OS :
Installation
Use npm
npm install qr-cairo
Usage
var qr_cairo = require('qr-cairo'); // Qr with options var options = { 'ec_level': 'l', 'box_size': '20', 'back_color': '#ee4444', 'fill_color': '#222200' }; qr_cairo.save("Amine", "test2.png", options);
Roadmap
This is a list of some features that I would like to add it to the library
- Option to chose cercles or triangle instead of squares
- Change the alpha color parameter
- Add some unit tests
- Support SVG and other format if possible
- Async save method