daShangDao_newAdmin/node_modules/escpos-usb
2025-06-05 10:35:45 +08:00
..
index.js Initial commit 2025-06-05 10:35:45 +08:00
LICENSE Initial commit 2025-06-05 10:35:45 +08:00
package.json Initial commit 2025-06-05 10:35:45 +08:00
README.md Initial commit 2025-06-05 10:35:45 +08:00

USB(vid, pid)

const escpos = require('escpos');
escpos.USB = require('escpos-usb');

const usbDevice = new escpos.USB(0x01, 0xff);

vid(Vendor Id) and pid (Product Id) can be checked with the lsusb command or escpos.USB.findPrinter() method.