在控制台输出二维码 import QRCode from 'terminal-image-qrcode' const buffer = Buffer.from('buffer'); const qrcode = await QRCode(buffer); console.log(qrcode);