1.0.2 • Published 3 years ago

espos-usb-mc v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

espos-usb-mc

My temp espos-usb solution

If you use usb as an adapter :

  • On Linux, you'll need libudev to build libusb.
  • On Ubuntu/Debian: sudo apt-get install build-essential libudev-dev.
  • On Windows, Use Zadig to install the WinUSB driver for your USB device.

Otherwise you will get LIBUSB_ERROR_NOT_SUPPORTED when attempting to open devices.

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.

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago