I'm building a website for a client in Node.js and I need to generate QR-codes or Barcodes for the ticket system.
I've found a few modules, but all of them need an install like canvas, one way or another.
I'm on a shared hosting package and my host does not allow me to install any such packages, unless I upgrade to a VPS or dedicated server (which I do not have the money for).
Does any of you know how I can pull this off in Node.js or do I need to put up a subdomain for generating the QR in PHP or front-end generating (which I do not prefer AT ALL)?
Currently using:
Modules found:
It is easy to convert an image to QR Code online with our QR Code Generator. Also known as Image Gallery QR Code, it is a QR Code solution that enables you to display not just an image, but multiple images in the form of a gallery.
How to generate an offline QR code using a QR code generator online software. Convert your data into an offline QR code using an offline QR code generator by following these simple steps. Click the QR code solution that you want to generate – Click whether you want to create a URL, email, or text offline QR code.
Have a look over this code:
var qr = require('qr-image');
var express = require('express');
var app = express();
app.get('/', function(req, res) {
var code = qr.image(new Date().toString(), { type: 'svg' });
res.type('svg');
code.pipe(res);
});
app.listen(3000);
visit npm-qr-image
You could use qr-image it is a full JavaScript solution using Buffers that generates QR codes in following formats: png, svg, eps and pdf formats
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With