Skip to content

chonla/fastify-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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