Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app.get('/qr/:data', (req, res) =>
qrcode.toFileStream(res.type('png'), req.params.data))
app.get('/checkout/:invoice/qr.png', wrap(async (req, res) => {
qrcode.toFileStream(res.type('png'), `lightning:${req.invoice.payreq}`.toUpperCase())
}))
}
function writeQRCodeToStream(text, stream) {
qrcode.toFileStream(stream, text, options);
}