@chonla/fastify-qrcode

QR Code generator plugin for fastify.

Usage no npm install needed!

<script type="module">
  import chonlaFastifyQrcode from 'https://cdn.skypack.dev/@chonla/fastify-qrcode';
</script>

README

fastify-qrcode

Fastify QR Code plugin utilizes qrcode npm package written by Ryan Day and contributors to generate QR Code.

Usage

const fastify = require('fastify')()

fastify.register(require('@chonla/fastify-qrcode'))

// Generate qrcode
fastify.qrcode.toDataURL('test', (error, url) => {
    console.log(url)
})

License

MIT