You can input qrcode.toCanvas() to draw a canvas on console.
You can input qrcode.toImage() to create a image element on console.
You can input qrcode.downloadImage('qrcode') to download image on console.
You can input qrcode.getCanvas().then(canvas => {}) to deal with the canvas.