node-escpos / driver

🖨️ ESC/POS Printer driver for Node.js.
Other
287 stars 27 forks source link

QRImage don't work #66

Open TomFuch opened 1 year ago

TomFuch commented 1 year ago

printer.qrimage("test") don't work and failed with:

UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Buffer

tobiasbenkner commented 2 months ago
.qrimage("your text", {
              type: "png",
              mode: "dhdw",
              size: 2,
            });

works for me