mirror of
https://gitlab.com/timvisee/send.git
synced 2024-11-14 23:22:36 +01:00
7cdef4bbfc
Co-authored-by: timvisee <tim@visee.me>
11 lines
245 B
JavaScript
11 lines
245 B
JavaScript
const raw = require('choo/html/raw');
|
|
const qrcode = require('../qrcode');
|
|
|
|
module.exports = function(url) {
|
|
const gen = qrcode(5, 'L');
|
|
gen.addData(url);
|
|
gen.make();
|
|
const qr = gen.createSvgTag({ scalable: true });
|
|
return raw(qr);
|
|
};
|