How to use the qrcode.toFileStream function in qrcode

To help you get started, we’ve selected a few qrcode examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github shesek / spark-wallet / src / webui.js View on Github external
app.get('/qr/:data', (req, res) =>
    qrcode.toFileStream(res.type('png'), req.params.data))
github ElementsProject / lightning-charge / src / checkout.js View on Github external
app.get('/checkout/:invoice/qr.png', wrap(async (req, res) => {
    qrcode.toFileStream(res.type('png'), `lightning:${req.invoice.payreq}`.toUpperCase())
  }))
}
github mhacks / mhacks-web / server / interactors / qr.js View on Github external
function writeQRCodeToStream(text, stream) {
    qrcode.toFileStream(stream, text, options);
}